[SOLVED] "get NFts by Wallet" or "get NFts by Conctract" data is not syncing fast so the data is not reliable in my case

I was using “get NFTs but contract” or get NFts by Wallet. and these NFTS are revealed for 1 month now but still returns the unrevealed images that was index, and that makes it avsoloutly useless to me. also if I buy an NFT right now, and I query the get NFts by Wallet I doesnt apear in the lists of My nfts for few hours even sometimes for a day or so, is there any way we can speed up these syncs?

it says the sync was

“last_token_uri_sync”: “2022-10-22T15:05:31.259Z”,
“last_metadata_sync”: “2022-10-22T15:05:37.199Z”,

this is a query done today:

{
  "total": 4153,
  "page": 0,
  "page_size": 100,
  "cursor": "",
  "result": [
    {
      "token_hash": "ffe43b85a959aad415ff44069b2c4410",
      "token_address": "",
      "token_id": "1195",
      "block_number_minted": "15804428",
      "amount": "1",
      "contract_type": "ERC721",
      "name": "",
      "symbol": "MGHT",
      "token_uri": "",
      "metadata": "{\"edition\":1,\"date\":1645168826650,\"name\":\"_\",\"attributes\":[],\"image\":\"\"}",
      "last_token_uri_sync": "2022-10-22T15:05:31.259Z",
      "last_metadata_sync": "2022-10-22T15:05:37.199Z",
      "minter_address": "0x1d8bb512f56451dd..."
    },

we don’t refresh metadata automatically for non ipfs token uris, you can use resync metadata endpoint with uri flag (not URI) to force a resync

1 Like

Thanks for your response, I leave this here for anyone looking to rysync contract

this works only if the contract was never synced, there is also an endpoint where you have to specify the token id from a contract that has to be resynced

1 Like

Oh ok, so I have to send request for every token in the contract ? is there any reference to that endpoint in the docs ?

this is the endpoint

but you have to use the flag uri instead of URI that the interface will provide now as an option

1 Like

Thank you for your response.