Hi,
As stipulated in the docs here https://docs.moralis.io/moralis-server/web3-sdk/token, when passing the parameter chain
it should fetch token metadata on the specified chainId but the request is failing when it’s not eth
passed:
const metadata = await Moralis.Web3API.token.getTokenMetadata({
addresses: [tokenAddress],
chain: chainId === '0x7a69' ? '0x539' : chainId,
});
Because my token is on my local dev chain, the result is empty when eth
is automatically passed.