Web3Api.account.getNFTs not working since yesterday

I hope all of you are doing well

Since yesterday, I noticed the NFT’s I was pulling to my website suddenly went blank. I console.log the data and it returned null. I know I did not make any changes and I was using the feature on many different pages and it stopped working.

I fired up a ethereum boilerplate which uses useNFTBalances() on the NFTBalance page and it worked fine.

What is the change? Is there a place it was published, after all it would break websites.

I was using it to get the name, description and image of NFT metadata and I would then parse that metadata to display on page.

What is the new way to do it? That way was pretty fast.

Thanks in advance

Edit: Is there a place where such breaking changes are published so I can be kept up to date? I did check the docs on the Web3Api getNFTs section for a possible update.

This is not an intentional change. Can you give an example?

OK let me just replicate it on a clean page. Might be related to this - let me just pull the data to check the uri itself first.

your issue is different, it is related to caching

OK

Here is what is going on

It appears the options that is passed into Web3Api.account.getNFTs is suddenly the issue:
I was sending the chain, address and token_address. This was working fine for weeks. Now when I commented out the address and token_address suddenly the data loaded.

When I try process of elimination then the token_address is the issue. I then went on to the docs and saw that there is a getNFTsForContract for my purpose and tried it as well. It is both the same issue.

Here is what is happening:
When I pass token_address I get: status: “INSERTING” and the result is an empty array
inserting

When I don’t pass token_address then it says: status: “SYNCED” and it works fine.
synced

I am running on the Mumbai testnet. Now I have been working on this feature for a few weeks and it always loaded fine with the token_address. I just can’t seem to figure out what happened.

Is it possible to please shed any light on this?

can you share the exact parameters that you used?

can you test again now? it should work fine now

Hi no, still so.

I did some more testing the token_address is just not returning the data for that contract and that is what I need only the data for one contract. It just stopped working. It’s just so perplexing to me. I was using getNFTs with all three options. Now it only works with chain and address and getNFTsForContract doesn’t work at all due to the fact that token_address is required.

I messaged you the details that I was working with.

I noticed the token_address used as example in the docs returns status: “COMPLETED”
What does QUEUED, INSERTING, SYNCED, COMPLETED mean in this context?

Very interested to know what problem could be.

1 Like