[SOLVED] NFT API web3, problem

I’m having trouble executing functions, and when using the getNfts command, with old contracts it works well, with the Testnet BSC network contract it worked, but when I use it with a new contract on the BSC network it doesn’t find the data, the nfts are in the wallet, appearing until image but it returns as if there were no NFTs.

I try 3 methods, but eroor persist.
with old contracts it works normally, with new contracts it loads as if it was on the wrong network.

can you paste address, chain function that doesn’t work as expected?

1 Like

that’s right, directly through the bsc network it goes normal, the holders contract appears etc… if I pull some function from the contract it also accesses it, however, when using getnfts it doesn’t pull the existing nfts.

I need an exact example that doesn’t work

Sorry for my confusion, but here goes:

The NFT API functions do not work with the contracts I deployed today.
getNFTsForContract
getNFTs…

when I put a contract that I deployed yesterday it works perfectly, when I use the new ones it doesn’t work, the contract is identical, only the name was changed.
Searching the contract on bsc scan I can see it, see transactions and everything else, when I put it through the functions, whether in my code, or in swagger, or in moralis docs V2, it appears as if there were no NFTs, and if I put the number of contract that I deployed yesterday works.

I need the contract address to be able to check

1 Like

0xc0D36b81D5C1bc9bE5E76Dd3483b899DF11110E8

1 Like

I arrived to make transfers to see, and in trustwalleet, and metamask appear, including reading the json images

ok, thanks, we will investigate, now we have enough information

1 Like

ok, thanks, i’m wating, for your response.

1 Like

Hey, I was just about to post this issue too. I tested with old contracts and it works on the polygon network, but with the new contracts as of today, it’s not working. I thought this was just my mistake so I went on the polygon testnet and tested newly created contracts as of the date 9/2/2022, and has nfts token, I coundn’t retrieve newly created contracts data.

Here is my new contract: 0xa91487b83Dc20c090E3f53D209eeD7d1E1ED2A4e
Here is my old contract that works : 0x2f754dEA0fcac4C5F4DdA1075AfB52A541bF90Ce

2 Likes

It seems to be an issue on our side, we will investigate

1 Like

So it must be some API problem, and I spent hours trying to understand it, but because it is like that, it should be resolved quickly

1 Like

something about the situation? I’m waiting to finish some work.

1 Like

we are still investigating

3 Likes

@zeusgod, @hardjhonatan, can you check now if the issue still persists?

Same issue is still there. Tested with the new contract and return None, but return all tokens data of the older contract

new contract -> 0xa91487b83Dc20c090E3f53D209eeD7d1E1ED2A4e
old contracty -> 0x2f754dEA0fcac4C5F4DdA1075AfB52A541bF90Ce

this works without issues for me:

https://deep-index.moralis.io/api/v2/nft/0xa91487b83Dc20c090E3f53D209eeD7d1E1ED2A4e/1?chain=mumbai&format=decimal
2 Likes

tested again and it works!! thanks!!!

It works!! thanks!!!

1 Like