Fetch NFTs on solana returns bad request for valid wallets

Making a request for wallet:

curl -X 'GET' \
  'https://solana-gateway.moralis.io/account/devnet/GqxxFrARuzCvBWuz556ajU8SoA86V2aMWJvjxY4x5S7S/nft' \
  -H 'accept: application/json' \
  -H 'X-API-Key: '

Will return the NFTs on that network. But changing it to

curl -X 'GET' \
  'https://solana-gateway.moralis.io/account/mainnet/GqxxFrARuzCvBWuz556ajU8SoA86V2aMWJvjxY4x5S7S/nft' \
  -H 'accept: application/json' \
  -H 'X-API-Key: '

now it returns a Bad Request 400.
I was expecting the second request to return an empty list rather than a 400 error.
Is this intended?

We will check. I would not expect an error.

it should work now on mainnet

1 Like