- 登录注册
- 微信注册/登录/查询
- 查询类
- 写入类
- Scan API 查询
- NFT Market 交易上架
- Pice NFT 支付转移
- 积分控制
4-1.通过合约地址和TokenID获取NFT元数据
GET
https://testnet.confluxscan.net/stat/nft/checker/detail
请求参数
Query 参数
contractAddress
string
合约地址
示例值:
cfxtest:acemw4798zn9hjp933scet87p0w9jjv47ej8thjje9
tokenId
string
NFT的ID
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://testnet.confluxscan.net/stat/nft/checker/detail'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
imageMinHeight
integer
必需
imageUri
string
必需
imageName
object
必需
imageDesc
string
必需
detail
object
必需
externalMs
integer
必需
creator
string
必需
mintTime
string
必需
type
string
必需
示例
{
"code": 0,
"message": "string",
"data": {
"imageMinHeight": 0,
"imageUri": "string",
"imageName": {
"en": "string",
"zh": "string"
},
"imageDesc": "string",
"detail": {
"funcCall": "string",
"tokenUri": {
"raw": "string",
"gateway": "string"
},
"metadata": {
"name": "string",
"image": "string",
"description": "string",
"extra_image": null,
"attributes": [
{
"trait_type": "string",
"value": "string"
}
]
}
},
"externalMs": 0,
"creator": "string",
"mintTime": "string",
"type": "string"
}
}
修改于 2022-12-05 17:06:54