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: [
"0xe361f10965542ee57D39043C9c3972B77841F581",
],
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.

ReadMe