NFTIDs
NFTIDs
Get transfers by contract & NFTID
GET
https://services.tokenview.io/nft/{chain_abbreviation_lowercase}/blockdata/nfts/tokentrans/{collection_address}/{nft_id}/{page}/{page_size}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc
- {collection_address}: the collection address you inquired
- {nft_id}: nft id
- {page}: page number
- {page_size}: amount of data returned on one page
- {apikey}: Get your activated apikey from the API system: https://services.tokenview.io
Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.
Request
curl --location https://services.tokenview.io/nft/eth/blockdata/nfts/tokentrans/0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b/101/1/10?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"page": 1,
"size": 10,
"total": 4,
"data": [
{
"blockNo": 15224075,
"collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"collectionSymbol": "MEGAMI",
"time": 1658918687,
"txid": "0xcbc9a6113626dc49c5be48ea525433d2bf69dee410940770716d71aa4123e89b",
"tokenInfo": {
"h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"f": "MEGAMI",
"s": "MEGAMI",
"d": "0",
"c": "RC721"
},
"from": "0x825035e9a485e9829abf826e6456a89042fdad04",
"to": "0x451a63c803787464740e60e8559e42dec2f8010f",
"nftId": "101",
"contractType": "1"
},
{
"blockNo": 15223123,
"collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"collectionSymbol": "MEGAMI",
"time": 1658906820,
"txid": "0xf4627b288fb98f7e2b4e971b58b7b23dc7d028afccdb5c54f7d06523fff7ffa9",
"tokenInfo": {
"h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"f": "MEGAMI",
"s": "MEGAMI",
"d": "0",
"c": "RC721"
},
"from": "0x26063b9a9f284dcb2f509519b7b2b956a1c2b32e",
"to": "0x825035e9a485e9829abf826e6456a89042fdad04",
"nftId": "101",
"contractType": "1"
},
{
"blockNo": 15151731,
"collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"collectionSymbol": "MEGAMI",
"time": 1657947807,
"txid": "0x1ec0e24ef643662af45a4e6e98f4d0699219cf6b9f245a93bcb8b5f0b10ab8ac",
"tokenInfo": {
"h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"f": "MEGAMI",
"s": "MEGAMI",
"d": "0",
"c": "RC721"
},
"from": "0x3385d594ecda0736b7dc92c5a5a384a3289eca21",
"to": "0x26063b9a9f284dcb2f509519b7b2b956a1c2b32e",
"nftId": "101",
"contractType": "1"
},
{
"blockNo": 15151703,
"collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"collectionSymbol": "MEGAMI",
"time": 1657947461,
"txid": "0xb7e92974bb5086387c6e43f1d7ad0b8ecfc7a02c07b7e21fe128b8dfd834be85",
"tokenInfo": {
"h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"f": "MEGAMI",
"s": "MEGAMI",
"d": "0",
"c": "RC721"
},
"from": "0x0000000000000000000000000000000000000000",
"to": "0x3385d594ecda0736b7dc92c5a5a384a3289eca21",
"nftId": "101",
"contractType": "1"
}
]
}
}
Response Description
- blockNo: block number
- collectionAddr: collection address
- collectionSymbol: collection short name
- time: timestamp of this block number
- txid: transcation hash
- tokenInfo:
- h: collection address
- f: collection full name
- s: collectionSymbol
- d: tokenDecimals
- c: contract type (RC721/RC1155)
- from: from address of transfer
- to: to address of transfer
- nftId: nft id
- contractType: contract type(1:RC721; 2:RC1155)
- amount: number of nfts transferred (this field is returned when the query collection is of type RC1155)
Get transfer count by contract & NFTID
GET
https://services.tokenview.io/nft/{lowercase-coin-abbr}/blockdata/nfts/tokentranscnt/{collection_address}/{nft_id}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc
- {collection_address}: the collection address you inquired
- {nft_id}: nft id
- {apikey}: Get your activated apikey from the API system: https://services.tokenview.io
Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.
Request
curl --location https://services.tokenview.io/nft/eth/blockdata/nfts/tokentranscnt/0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b/101?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": 4
}
Response Description
- data: total number of transactions for the NFTID on this collection
Get holders by collection & NFTID
GET
https://services.tokenview.io/nft/{lowercase-coin-abbr}/blockdata/nfts/holder/{collection_address}/{nft_id}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc
- {collection_address}: the collection address you inquired
- {nft_id}: nft id
- {apikey}: Get your activated apikey from the API system: https://services.tokenview.io
Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.
Request
curl --location https://services.tokenview.io/nft/eth/blockdata/nfts/holder/0xf1f3ca6268f330fda08418db12171c3173ee39c9/26?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": [
{
"owner": "0x000000000a38444e0a6e37d3b630d7e855a7cb13",
"nftid": "26",
"date": "2021-12-08",
"amount": "1"
},
{
"owner": "0x000000064730640b7d670408d74280924883064f",
"nftid": "26",
"date": "2021-12-31",
"amount": "1"
},
{
"owner": "0x00000009d94baf057697d988d2e3eec2fce81162",
"nftid": "26",
"date": "2022-07-17",
"amount": "1"
}
]
}
Response Description
- owner: holder address of the nftId
- nftid: nftId
- date: data update date
- amount: number of nfts
Get holder count by collection & NFTID
GET
https://services.tokenview.io/nft/{chain_abbreviation_lowercase}/blockdata/nfts/holdercnt/{collection_address}/{nft_id}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc
- {collection_address}: the collection address you inquired
- {nft_id}: nft id
- {apikey}: Get your activated apikey from the API system: https://services.tokenview.io
Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.
Request
curl --location https://services.tokenview.io/nft/eth/blockdata/nfts/holdercnt/0xf1f3ca6268f330fda08418db12171c3173ee39c9/26?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": 18
}
Response Description
- data: total number of current holders for the NFTID on this collection
Get NFT info by collection & NFTID
GET
https://services.tokenview.io/nft/{chain_abbreviation_lowercase}/blockdata/nfts/{collection_address}/{nft_id}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc
- {collection_address}: the collection address you inquired
- {nft_id}: nft id
- {apikey}: Get your activated apikey from the API system: https://services.tokenview.io
Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.
If the access speed of ipfs.io is not satisfactory when accessing ipfs resources, please replace it with another ipfs gateway domain name
Request
curl --location https://services.tokenview.io/nft/eth/blockdata/nfts/0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b/1?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"contractAddress": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
"contractName": "MEGAMI",
"contractTotalSupply": "9552",
"nftid": "1",
"owner": "0xec1bb4d8fcc604999af6f4cd0703dec629e79f53",
"creator": "0x2c846fe59f8cdb757352def5f6dfa9d83e7ae19e",
"imageUrl": "https://ipfs.io/ipfs/QmZF9jMdNj2dwZJP2WdbeU4AVfc7K1ZhY9wbC14e3BDZi4/00001.png",
"metaJson": "{\"image\":\"ipfs://QmZF9jMdNj2dwZJP2WdbeU4AVfc7K1ZhY9wbC14e3BDZi4/00001.png\",\"external_url\":\"https://mint.megami.io/?id=1\",\"name\":\"Megami #00001\",\"description\":\"Naoki Saito's 1/1 quality as an NFT collectible. \\nThis is the concept of MEGAMI. \\nYour own Megami, not for anyone else. \\nThe Megami of your choice will empower you. \\nFind your own personal Megami and rediscover your own value.\",\"attributes\":[{\"value\":\"Origin\",\"trait_type\":\"GenerativeType\"},{\"value\":\"Schoolgirl\",\"trait_type\":\"OriginName\"},{\"value\":\"Zephyr\",\"trait_type\":\"Effect\"},{\"value\":\"Vivid Heart\",\"trait_type\":\"PowerSource\"},{\"value\":\"Deity Hairpin\",\"trait_type\":\"HeadAccessory\"},{\"value\":\"Charcoal Schoolgirl Cut\",\"trait_type\":\"HairStyle\"},{\"value\":\"Sailor School Uniform\",\"trait_type\":\"Clothes\"},{\"value\":\"Schoolgirl\",\"trait_type\":\"FaceType\"},{\"value\":\"Rosy\",\"trait_type\":\"SkinTone\"},{\"value\":\"Circle\",\"trait_type\":\"HandSign\"},{\"value\":\"Wings of Hope\",\"trait_type\":\"Wings\"},{\"value\":\"Hope\",\"trait_type\":\"Halo\"},{\"value\":\"Ring of Hope\",\"trait_type\":\"BackgroundEffect\"},{\"value\":\"Light of Hope\",\"trait_type\":\"Background\"}]}",
"tokenUri": "ipfs://QmQMdt64iGaCFR1RCN9yRL2eFbWeizPwEdVKbfH9aSayFt/1.json"
}
}
Response Description
- data:
- contractAddress: contract address
- contractName: contract name
- contractTotalSupply: total supply of nft in this collection
- nftId: nftId
- owner: holder of the nftId
- creator: contract creator
- imageUrl: nft image link
- metaJson:metadata json
- tokenUri: metadata link