near / near-enhanced-api-server

https://console.pagoda.co/apis?tab=enhancedApi#/
18 stars 6 forks source link

Incorrect near account listed as NFT owner #70

Open charleslavon opened 1 year ago

charleslavon commented 1 year ago

Fetching NFTs by near account and Fetching a NFT collection's details contain conflicting information.

Fetching a collection by user charleslavon.near failed to include the NFT which shows up in my wallet. NFT contract: v0.8bityonce.near tokenID: keypom-146-2-8bityonce.near-1672417847792

curl --request GET \
  --url https://near-mainnet.api.pagoda.co/eapi/v1/accounts/charleslavon.near/NFT \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: AAABBB'

Fetching a NFT collection by contractID and tokenId does correctly show charleslavon.near as owning the above NFT


  --url https://near-mainnet.api.pagoda.co/eapi/v1/accounts/charleslavon.near/NFT/v0.8bityonce.near \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: AAABBB'```
```{
  "nfts": [
    {
      "token_id": "keypom-146-2-8bityonce.near-1672417847792",
      "owner_account_id": "charleslavon.near",
      "metadata": {
        "title": "Act 1: 8bitYonce #2",
        "description": "In honor of waiting for them visuals to drop",
        "media": "https://bafybeibrsza3k4bv5owo3rjg4ltwkuz6eqpny337wwkfp2kj7u6dcezb7m.ipfs.w3s.link/2.png",
        "media_hash": null,
        "copies": null,
        "extra": null,
        "reference": null,
        "reference_hash": null
      }
    }
  ],
  "contract_metadata": {
    "spec": "nft-1.0.0",
    "name": "8Bit Act 1: RENAISSANCE",
    "symbol": "8BitYonce",
    "icon": null,
    "base_uri": null,
    "reference": null,
    "reference_hash": null
  },
  "block_timestamp_nanos": "1697228935030371506",
  "block_height": "103304413"
}```