9.ERC721、ERC1155合约NFT的销毁
POST
https://testnet.jugugu.cn/GUGUBOX_BurnERC721、ERC1155合约NFT的销毁,只能单个销毁,为确保区块链交易成功,请串行一个一个的销毁。销毁将会打入黑洞地址,无法再找回,谨慎操作!
请求参数
Body 参数application/json
phone
string
手机号
token
string
登录Jugugu获得的通信令牌
contract
string
合约地址
NFT的合约地址
tokenid
string
nft的ID
contracttype
string
合约类型
721代表ERC721合约,1155代表ERC1155合约
amount
string
徽章数量
721忽略该字段,传“”空字符串即可
chaintype
string
合约类型
conflux链默认‘cfx’
示例1
{
"phone": "18187371561",
"token": "cupidatat",
"contract": "sint non ullamco deserunt in",
"name": "中打直放效干",
"description": "决三油还工要联最人理构节。区京自原么段领但特想物作县可。生流管选却法斯处务而在可红。特越党第式集速划积南建适标合。",
"image": "http://dummyimage.com/400x400",
"extra_image": [
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400",
"http://dummyimage.com/400x400"
],
"number": "80",
"attributes": [
{
"trait_type": "laboris",
"value": "dolor tempor ut"
},
{
"trait_type": "ut voluptate",
"value": "incididunt aliquip non ut Ut"
},
{
"trait_type": "dolore velit nostrud",
"value": "officia elit fugiat qui"
},
{
"trait_type": "Duis tempor velit laboris",
"value": "qui"
}
],
"code": "93"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
请求状态
0代表成功 -1代表错误
msg
string
提示信息
请求提示信息
hash
string
交易hash
交易hash
contract
string
合约地址
合约地址
account
string
执行销毁的用户地址
tokenid
string
销毁的NFTid
amount
string
销毁的数量
示例
成功示例
{
"code": 0,
"msg": "生成成功",
"hash": "0x34d7395c3ddd66ae1b45abe52608d3f6dc124ce5ca3287c0fc41ea617cbaffda",
"contract": "cfxtest:acgssnxj1mm1s870s76juwwfvp58rs3phyvd1ydrj1",
"poapamount": "",
"nfts": [
{
"id": "2",
"owner": "cfxtest:aapsau0fgafbz53d3ke963r7mhgu16y592k3deunrw"
},
{
"id": "3",
"owner": "cfxtest:aapsau0fgafbz53d3ke963r7mhgu16y592k3deunrw"
},
{
"id": "4",
"owner": "cfxtest:aapsau0fgafbz53d3ke963r7mhgu16y592k3deunrw"
},
{
"id": "5",
"owner": "cfxtest:aapsau0fgafbz53d3ke963r7mhgu16y592k3deunrw"
},
{
"id": "6",
"owner": "cfxtest:aapsau0fgafbz53d3ke963r7mhgu16y592k3deunrw"
}
]
}
最后修改时间: 2 年前