Moralis not indexing some NFTs in a contract on polygon

Hope you guys can fix that soon.
Tks so much for your support

Hey I see another problem when I get nft data of mumbai test net chain

curl -X 'GET' \
  'https://deep-index.moralis.io/api/v2/nft/0xDc4a728283A2Ef5EdAC036e2d692C7d285663bDB?chain=0x13881&format=decimal&order=DESC' \

This api return 2 record with same tokenId. I don’t know what happen

{
  "total": 2,
  "page": 0,
  "page_size": 500,
  "result": [
    {
      "token_address": "0xdc4a728283a2ef5edac036e2d692c7d285663bdb",
      "token_id": "1",
      "amount": "10",
      "owner_of": "0xd59f8761c98d8c1350644dc16710c5e321cca192",
      "block_number": "21769485",
      "block_number_minted": "21768544",
      "contract_type": "ERC1155",
      "name": "RI",
      "symbol": "R",
      "token_uri": "https://opensea-creatures-api.herokuapp.com/api/creature/1",
      "metadata": null,
      "is_valid": 0,
      "syncing": 1,
      "synced_at": null,
      "frozen": 0
    },
    {
      "token_address": "0xdc4a728283a2ef5edac036e2d692c7d285663bdb",
      "token_id": "1",
      "amount": "8",
      "owner_of": "0xda8ab4137fe28f969b27c780d313d1bb62c8341e",
      "block_number": "21768544",
      "block_number_minted": "21768544",
      "contract_type": "ERC1155",
      "name": "RI",
      "symbol": "R",
      "token_uri": "https://opensea-creatures-api.herokuapp.com/api/creature/1",
      "metadata": null,
      "is_valid": 0,
      "syncing": 1,
      "synced_at": null,
      "frozen": 0
    }
  ],
  "status": "SYNCED"
}

The format of response data is not true. Before, I don’t have owner_of and block_number when I get nft metadata of a contract address.

for ERC1155 there could be multiple owners for same token id, as same token ID can have a variable quantity

The problem is, in the last week, the data of API getAllTokenIds not contain owner and the amount data is total nft mint of this nft, not separate for each owner

I see owner with

x = await Moralis.Web3API.token.getAllTokenIds({address: ‘0xDc4a728283A2Ef5EdAC036e2d692C7d285663bDB’, chain: ‘0x13881’})

one with 10 tokens and one with 5 tokens

I checked now by calling balanceOf with ‘0xd59f8761c98d8c1350644dc16710c5e321cca192’ and ‘0xda8ab4137fe28f969b27c780d313d1bb62c8341e’

everything looks fine, what output would you expect?

I expect the response is the same with your API before
The amount is total amount of that nft(15), not 2 separate record (10 and 5) for just 1 nft like the response I post above
You can see for now, API getAllTokenIds(​/nft​/{address}) and API ​/nft​/{address}​/owners return the same response

what you say is that getAllTokenIds should return a different output vs getNFTOwners?

as in Moralis.Web3API.token.getAllTokenIds should not include the owner part and group all the owners to get the total quantity for a token?

and the output of Moralis.Web3API.token.getNFTOwners has the expected output?

Yes, that’s exactly what I want to say

The data of nft in rinkeby contract is not index happen again.
I fetch allTokenIIds for the first time yesterday, But today, it still doesn’t have data

https://deep-index.moralis.io/api/v2/nft/0x4aa77794167b0cc6bcf648cd1faa4c608d87c837?chain=rinkeby&format=decimal

yes, it looks like it doesn’t index new NFTs yet, hopefully will be fixed today

Do you have any update on this, our app is really depends on this function to get all nft of a contract address. It still works on Mumbai test net and bsc testnet. The problem happens for just rinkeby

it looks like it is not fixed yet on rinkeby

What about mainet: Ethereum, BSC and Polygon, does that work properly

I expect it to work properly now on the other chains except rinkeby

Today, I found that both mumbai testnet and bsc testnet are not indexing either. Please check that

curl -X 'GET' \
  'https://deep-index.moralis.io/api/v2/nft/0x743E78A08632001a40a23A17Ced94a9e466Be9ff?chain=bsc%20testnet&format=decimal&limit=2' \
  -H 'accept: application/json' \
  -H 'X-API-Key: [redacted]'
1 Like

this particular case should be fixed now

now that problem with multiple token ids should be fixed, as in to be only one token id per entry

@cryptokid Please fix this as soon as possible
It’s really horrible when you guys change the api response a lot and it has more wrong data than previous

https://deep-index.moralis.io/api/v2/nft/0x8050f2AC18292F3d4b9d1f6C2D88A040CE08F55B?chain=0x13881&format=decimal'

return two record for just one token id

{
  "total": 2,
  "page": 0,
  "page_size": 500,
  "result": [
    {
      "token_address": "0x8050f2ac18292f3d4b9d1f6c2d88a040ce08f55b",
      "token_id": "97203442407157406815555499853786501377909873640081258943264661057071302235737",
      "amount": "15",
      "contract_type": "ERC1155",
      "name": "poly0712",
      "symbol": "poly0712",
      "token_uri": "https://metadata.ekoios.net/ipfs/97203442407157406815555499853786501377909873640081258943264661057071302235737",
      "metadata": "{\"name\":\"item0712\",\"image\":\"https://nftify.ekoiosblock.com/ipfs/QmYQam2ZCxXDQmu3iJ4cQC5PiG2gmK3qfHe58qfvPrFofN\",\"external_url\":\"https://poly100.ekoiosblock.com/nft/item0712\",\"attributes\":[],\"artist\":\"0xc27F7bF146Fc075748a199DCA3F37845631Bb7e3\"}",
      "synced_at": "2021-12-07T03:23:57.130Z"
    },
    {
      "token_address": "0x8050f2ac18292f3d4b9d1f6c2d88a040ce08f55b",
      "token_id": "97203442407157406815555499853786501377909873640081258943264661057071302235737",
      "amount": "20",
      "contract_type": "ERC1155",
      "name": "poly0712",
      "symbol": "poly0712",
      "token_uri": "https://metadata.ekoios.net/ipfs/97203442407157406815555499853786501377909873640081258943264661057071302235737",
      "metadata": "{\"name\":\"item0712\",\"image\":\"https://nftify.ekoiosblock.com/ipfs/QmYQam2ZCxXDQmu3iJ4cQC5PiG2gmK3qfHe58qfvPrFofN\",\"external_url\":\"https://poly100.ekoiosblock.com/nft/item0712\",\"attributes\":[],\"artist\":\"0xc27F7bF146Fc075748a199DCA3F37845631Bb7e3\"}",
      "synced_at": "2021-12-07T03:23:57.130Z"
    }
  ]
}
1 Like

it looks like a problem, thanks for reporting

1 Like

should be fixed now.

1 Like