NFTs
About 1 min
NFTs
Get NFTs by account
GET
https://services.tokenview.io/nft/{lowercase-coin-abbr}/blockdata/assets/inventory/{account}/{type}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc;
- {account}: account address;
- {type}: The type of contract, RC721 | RC1155
- {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/assets/inventory/0xdb499e22e2b002648db0127f64a5239c540b5317/all?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": [
{
"contractAddress": "0xf1f3ca6268f330fda08418db12171c3173ee39c9",
"collectionName": "ZPR NFT",
"contractType": "RC1155"
},
{
"contractAddress": "0x932261f9fc8da46c4a22e31b45c4de60623848bf",
"collectionName": "DNA",
"contractType": "RC721"
}
]
}
Response Description
- contractAddress: the contract address of the nft collection
- collectionName:the contract name of the nft collection
- contractType:contract type (RC721/RC1155)
Get NFT balance by account & contract
GET
https://services.tokenview.io/nft/{lowercase-coin-abbr}/blockdata/assets/balance/{account}/{collection_address}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc
- {account}: account address
- {collection _address}: The collection address you inquired
- {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/assets/balance/0xab235c580f64a12da93886d478bc9c938abecfec/0x6be69b2a9b153737887cfcdca7781ed1511c7e36?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"contractAddress": "0x6be69b2a9b153737887cfcdca7781ed1511c7e36",
"collectionName": "KGF",
"contractType": "RC721",
"balance": 1
}
}
Response Description
- contractAddress: the contract address of the nft collection
- collectionName:the contract name of the nft collection
- contractType:contract type (RC721/RC1155)
- balance: query address The number of nfts held in this collection
Get NFTIDs by account & contract
GET
https://services.tokenview.io/nft/{chain_abbreviation_lowercase}/blockdata/assets/inventory/{account}/{collection_address}/{page}/{page_size}?apikey={apikey}
Parameters
- {lowercase-coin-abbr}: eth,bsc
- {account}: account of address
- {collection_address}: the contract address
- {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.
this interface only supports querying the last 1000 nft transactions of the participating wallet addresses
Request
curl --location https://services.tokenview.io/nft/eth/blockdata/assets/inventory/0x06d92b5b6ae4b53fffdc8654707dfc2821e3897c/0xad87d689688998f7987d78b51241ebcec9127478/1/10?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"page": 1,
"size": 10,
"total": 1,
"data": [
{
"owner": "0x06d92b5b6ae4b53fffdc8654707dfc2821e3897c",
"nftid": "1",
"date": "2022-08-11",
"imageUrl": "https://arweave.net/iwxhgcmW_QUA5UlWDfQiCDOMzB8l7Q6CV49PdtPzoB8",
"amount": "2"
}
]
}
}
Response Description
- page: page number
- size: amount of data returned on one page
- total: total number of data
- data: assets info
- owner: holder address of the nftId
- nftid: nftId
- date: data update date
- amount: nft amount,only 1155
- imageUrl: nft image link