I’m using the following NPM package for fetching all NFTs owned by an address: https://www.npmjs.com/package/moralis
My code:
const moralisNfts = await Moralis.EvmApi.nft.getWalletNFTs({
address,
chain: "1",
});
When I destructure moralisNfts.result
, I’m able to destructure all properties except tokenId
. I get the following error:
Property 'tokenId' does not exist on type 'EvmNft'
I inspected the type definition file and tokenId is clearly included:
tokenAddress: string;
chain: string | number;
ownerOf: string | undefined;
blockNumberMinted: string | undefined;
blockNumber: string | undefined;
tokenId: string | number;
...etc
Any idea why I’m getting the error above?