NFT(请前往NFT APIs继续使用)
NFT(请前往NFT APIs继续使用)
NFT,全称为 Non-Fungible Token,称之为非同质化代币。
本部分已不再支持,请移步 NFT APIs 和 NFT & Bitcoin Oridinals订阅 继续使用。
721 代币持有占比
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokenholders/rc721/{代币地址}/{页码}/{每页交易条数}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {代币地址}:代币Token的合约地址;
- {页码}:1,2,3,... 50,最多50页;
- {每页交易条数}:1,2,3...50,每页交易条数,最多50条;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io。
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokenholders/rc721/0xccb9d89e0f77df3618eec9f6bf899be3b5561a89/1/10?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"page": 1,
"size": 10,
"total": 26372,
"data": [
{
"quantity": 290,
"address": "0x7381c2e71a60cf9ef5ef8fbc7b040b390797e2ad",
"ratio": 0.9292489105357601
},
{
"quantity": 250,
"address": "0xf139b56d638c25871da1c010697d7b5b9a214e02",
"ratio": 0.8010766470135864
},
{
"quantity": 128,
"address": "0x8dea94ac7a9625e16195961059f88945aad80472",
"ratio": 0.41015124327095615
},
{
"quantity": 71,
"address": "0xdca043d1aa8061d6577b361de32f6ae552b30339",
"ratio": 0.22750576775185852
},
{
"quantity": 70,
"address": "0x659296437f67b947ba56b04dc3f20dc4c5f08516",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0x6e09c5d2614c809312b1b739ca956ea287f2a12a",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0x9b295182eb8b4c62c420596af8a07c65e549eb7e",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0xd91749e967f83b493206535d736f0331b7084483",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0xddff8b0b76bfbd717e1936c827ff2c4badbab99c",
"ratio": 0.22430146116380417
},
{
"quantity": 69,
"address": "0x18eb5b2a1d221966e75d174c62f9e8afa431a54f",
"ratio": 0.22109715457574983
}
]
}
}
应答字段说明
"data": [
{
"quantity": 290, // 持有的NFT ID个数
"address": "0x7381c2e71a60cf9ef5ef8fbc7b040b390797e2ad", // 地址
"ratio": 0.9292489105357601 // 持有NFT ID个数 占 此代币已发行的NFT 百分比
}
1155 代币持有占比
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokenholders/rc1155/{代币地址}/{页码}/{每页交易条数}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {代币地址}:代币Token的合约地址;
- {页码}:1,2,3,... 50,最多50页;
- {每页交易条数}:1,2,3...50,每页交易条数,最多50条;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io。
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokenholders/rc1155/0xccb9d89e0f77df3618eec9f6bf899be3b5561a89/1/10?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"page": 1,
"size": 10,
"total": 26372,
"data": [
{
"quantity": 290,
"address": "0x7381c2e71a60cf9ef5ef8fbc7b040b390797e2ad",
"ratio": 0.9292489105357601
},
{
"quantity": 250,
"address": "0xf139b56d638c25871da1c010697d7b5b9a214e02",
"ratio": 0.8010766470135864
},
{
"quantity": 128,
"address": "0x8dea94ac7a9625e16195961059f88945aad80472",
"ratio": 0.41015124327095615
},
{
"quantity": 71,
"address": "0xdca043d1aa8061d6577b361de32f6ae552b30339",
"ratio": 0.22750576775185852
},
{
"quantity": 70,
"address": "0x659296437f67b947ba56b04dc3f20dc4c5f08516",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0x6e09c5d2614c809312b1b739ca956ea287f2a12a",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0x9b295182eb8b4c62c420596af8a07c65e549eb7e",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0xd91749e967f83b493206535d736f0331b7084483",
"ratio": 0.22430146116380417
},
{
"quantity": 70,
"address": "0xddff8b0b76bfbd717e1936c827ff2c4badbab99c",
"ratio": 0.22430146116380417
},
{
"quantity": 69,
"address": "0x18eb5b2a1d221966e75d174c62f9e8afa431a54f",
"ratio": 0.22109715457574983
}
]
}
}
应答字段说明
"data": [
{
"quantity": 290, // 持有的NFT ID个数
"address": "0x7381c2e71a60cf9ef5ef8fbc7b040b390797e2ad", // 地址
"ratio": 0.9292489105357601 // 持有NFT ID个数 占 此代币已发行的NFT 百分比
}
721 代币个数
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokencount/rc721/{持币地址}/{代币地址}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {持币地址}:拥有该代币的钱包地址;
- {代币地址}:代币Token的合约地址;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokencount/rc721/0x7381c2e71a60cf9ef5ef8fbc7b040b390797e2ad/0xccb9d89e0f77df3618eec9f6bf899be3b5561a89?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": 290
}
1155 代币个数
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokencount/rc1155/{持币地址}/{代币地址}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {持币地址}:拥有该代币的钱包地址;
- {代币地址}:代币Token的合约地址;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io。
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokencount/rc1155/0x7381c2e71a60cf9ef5ef8fbc7b040b390797e2ad/0xccb9d89e0f77df3618eec9f6bf899be3b5561a89?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": 290
}
721 代币交易列表
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokentxonaddress/rc721/{代币地址}/{nftid}/{页码}/{每页记录条数}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {代币地址}:代币Token的合约地址;
- {nftid}: NFT ID 号;
- {页码}:1,2,3,... 50,最多50页;
- {每页交易条数}:1,2,3...50,每页交易条数,最多50条。
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokentxonaddress/rc721/0x7a3661eda8f70783213f7d0534c2ed26c11b253b/2840/1/20?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"page": 1,
"size": 20,
"total": 2,
"data": [
{
"block_no": 14570242,
"tx": "0x776b8a346eaa9a8add6a92eb159e71ca733b62aa7e0d3bb75f1f9be95eacca9b",
"timestamp": 1649760246,
"token": "0x7a3661eda8f70783213f7d0534c2ed26c11b253b",
"from": "0x2d92071196d61b7060aa07027aea02f7db5c65f0",
"to": "0x2a1dc3355da17a9496b82065f368e9f2a6547f10",
"nftid": "2840"
},
{
"block_no": 14544477,
"tx": "0x488a0cde36dfe7efe3dd6651389281ce634ab75f5af0e51393f6d72f5d1bd3e6",
"timestamp": 1649412333,
"token": "0x7a3661eda8f70783213f7d0534c2ed26c11b253b",
"from": "0x0000000000000000000000000000000000000000",
"to": "0x2d92071196d61b7060aa07027aea02f7db5c65f0",
"nftid": "2840"
}
]
}
}
应答字段说明
"data":[
{
"block_no": 14570242, // 区块高度
"tx": "0x776b8a346eaa9a8add6a92eb159e71ca733b62aa7e0d3bb75f1f9be95eacca9b", // 交易hash
"timestamp": 1649760246, // 交易utc时间
"token": "0x7a3661eda8f70783213f7d0534c2ed26c11b253b", // 代币地址
"from": "0x2d92071196d61b7060aa07027aea02f7db5c65f0", // 转出地址
"to": "0x2a1dc3355da17a9496b82065f368e9f2a6547f10", // 转入地址
"nftid": "2840" // NFT ID
}]
1155 代币交易列表
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokentxonaddress/rc1155/{代币地址}/{nftid}/{页码}/{每页记录条数}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {代币地址}:代币Token的合约地址;
- {nftid}: NFT ID 号;
- {页码}:1,2,3,... 50,最多50页;
- {每页交易条数}:1,2,3...50,每页交易条数,最多50条。
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokentxonaddress/rc1155/0x495f947276749ce646f68ac8c248420045cb7b5e/42975819958711721920232916901508235966651862508478342993704198279389415211009/1/20?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"page": 1,
"size": 20,
"total": 1,
"data": [
{
"block_no": 14568803,
"tx": "0x7570cb6e2a2dfcdf3ccddb3768a67b63851114a971be2bbba8a297e84a11b681",
"timestamp": 1649740490,
"token": "0x495f947276749ce646f68ac8c248420045cb7b5e",
"from": "0x5f0373bd3785f292459b5db700e663e9fd3b14b9",
"to": "0x8888888888e9997e64793849389a8faf5e8e547c",
"nftid": "42975819958711721920232916901508235966651862508478342993704198279389415211009",
"amount": "1"
}
]
}
}
应答字段说明
{
"block_no": 14568803, // 区块高度
"tx": "0x7570cb6e2a2dfcdf3ccddb3768a67b63851114a971be2bbba8a297e84a11b681", // 交易hash
"timestamp": 1649740490, // 交易utc时间
"token": "0x495f947276749ce646f68ac8c248420045cb7b5e", // 代币地址
"from": "0x5f0373bd3785f292459b5db700e663e9fd3b14b9", // 转出地址
"to": "0x8888888888e9997e64793849389a8faf5e8e547c", // 转入地址
"nftid": "42975819958711721920232916901508235966651862508478342993704198279389415211009", // NFT ID
"amount": "1" // 转上面这个NFT ID的个数
}
721 代币持有人地址
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokeninventorywnftid/rc721/{代币地址}/{nftid}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {代币地址}:代币Token的合约地址;
- {nftid}: NFT ID 号;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokeninventorywnftid/rc721/0x7a3661eda8f70783213f7d0534c2ed26c11b253b/2840?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": [
{
"owner": "0x2a1dc3355da17a9496b82065f368e9f2a6547f10",
"nftid": "2840",
"date": "2022-04-12"
}
]
}
应答字段说明
{
"owner": "0x2a1dc3355da17a9496b82065f368e9f2a6547f10", // NFT ID主人地址
"nftid": "2840", // NFT ID
"date": "2022-04-12" // 收到此NFT ID的日期
}
1155 代币持有人地址
GET
https://services.tokenview.io/vipapi/{公链简称小写}/tokeninventorywnftid/rc1155/{代币地址}/{nftid}?apikey={apikey}
参数
- {公链简称小写}: eth, bsc, kcs, movr
- {代币地址}:代币Token的合约地址;
- {nftid}: NFT ID 号;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:
调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
Request
curl --location https://services.tokenview.io/vipapi/eth/tokeninventorywnftid/rc1155/0x7a3661eda8f70783213f7d0534c2ed26c11b253b/2840?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": [
{
"owner": "0x2a1dc3355da17a9496b82065f368e9f2a6547f10",
"nftid": "2840",
"date": "2022-04-12",
"amount": "1"
}
]
}
应答字段说明
{
"owner": "0x2a1dc3355da17a9496b82065f368e9f2a6547f10", // NFT ID主人地址
"nftid": "2840", // NFT ID
"date": "2022-04-12" // 收到此NFT ID的日期
"amount": "1" // 转上面这个NFT ID的个数
}