I’m having some issues with getTokenIdMetadata from the new SDK:
When attempting to use getTokenIdMetadata, my app errs out and I get a 400 in my web console:
POSThttps://.moralisweb3.com:2053/server/functions/getTokenIdMetadata
[HTTP/2 400 Bad Request 300ms]
As per the advice of CryptoKid in the Moralis discord, I restarted and upgraded my server to 0.251, but I’m still receiving a 400 when I attempt to call the getTokenIdMetadata. Here is a snippet of of the parameters, and code I’m using to call this function (token contract is a from an old test env) :
const TOKEN_CONTRACT_ADDRESS = "0x4E653a188103B54072B538AFEBAb914CDEF43345";
const options = { address: TOKEN_CONTRACT_ADDRESS, token_id: '19', chain: 'bsc testnet' };
const tokenIdMetadata = await Moralis.Web3API.token.getTokenIdMetadata(options);