Ask a Question
Back to All

Is getNftsForOwner not a function?

I'm getting an error with the Alchemy SDK when running the below code

const nftsForOwner = await alchemy.getNftsForOwner(account, {
contractAddresses: [
withMetadata: true,

The error I'm getting is TypeError: alchemy.getNftsForOwner is not a function

This is being run as an API request on next.js to keep the API Key environment variable hidden.