Sync owner of tokenIds on class


I have this class where I store minted nfts using contract events, and forgot to listen on transfer events of contract to update the ownership of tokenId

Currently there is 10k objects

I need to update the owners of 10k NFTs

Can you share the contract address?

If the contract is marked as erc1155 / erc721 standard then you should be able to get the data using getnftowners function.