{code: 141, error: 'Invalid Address!'} for getNFTTransfers

Getting {code: 141, error: 'Invalid Address!'} when calling getNFTTransfers. I am using the Moralis SDK along with react-moralis.

The address that I am passing in IS valid and I have tried multiple addresses. I do NOT receive this error when calling getNFTsForContract.

These are the versions I am using:

"moralis": "0.0.138",
"react-moralis": "^0.3.0",

Any help is greatly appreciated.

Thank you

Hi @ISleepWithSocksOn

We need to see your code, also please provide your server subdomain

This is how I am calling getNFTTransfers.

Moralis.Web3API.account
      .getNFTTransfers({
        chain: 'eth',
        direction: 'to',
        address: '0x1cA6e4643062e67CCd555fB4F64Bee603340e0ea'
      })
      .then((data: any) => {
        console.log('data', data);
      })
      .catch((err: any) => console.log('err', err));

This is my server: qoqqub0hm0l6.usemoralis.com

Let me know if any other data is needed. Not sure why getNFTsForContract works but getNFTTransfers does not.

Thank you

1 Like

there is a known problem with direction now, this works fine:

x = await Moralis.Web3API.account
      .getNFTTransfers({
        chain: 'eth',
        direction: 'both',
        address: '0x1cA6e4643062e67CCd555fB4F64Bee603340e0ea'
      })
1 Like