- 登录注册
- 微信注册/登录/查询
- 查询类
- 写入类
- 1.创建自定义合约POST
- 2.ERC721合约创建NFTPOST
- 3.ERC1155合约创建POAP NFT POST
- 3-1.ERC1155合约创建POAPLite NFTPOST
- 3-2.SBT灵魂通证ERC1155合约创建SBTPOST
- 4.获取POAP领取链接POST
- 5.直接领取POAPPOST
- 5-1.直接领取POAPPOST
- 6.批量转移POAP与NFTPOST
- 7.ERC721合约创建NFT盲盒POST
- 8.ERC721合约开启NFT盲盒POST
- 9.ERC721、ERC1155合约NFT的销毁POST
- 10.授权ERC1155 ApproveForAllPOST
- 11.ERC721授权ApprovePOST
- 12.Conflux web3域名CNS转移POST
- Scan API 查询
- NFT Market 交易上架
- Pice NFT 支付转移
- 积分控制
2.ERC721合约创建NFT
POST
https://testnet.jugugu.cn/GetGUGUBOXCreate721NFT
请求参数
Body 参数application/json
phone
string
手机号
token
string
登录Jugugu获得的通信令牌
paymentpassword
string
区块链短密钥
contract
string
合约地址
name
string
NFT的名称
description
string
NFT简介
image
string
NFT主资源data Base64编码数据,数据大小<40Mb
extra_image
array[string]
NFT额外的资源
number
string
本次创建的数量
ERC721合约单批次创建NFT的数量<=100
attributes
array [object {2}]
属性
trait_type
string
属性名称
value
string
属性值
code
string
POAP领取码
account
string
项目方账户
secret
string
项目方密码
chaintype
string
区块链类型
示例
{
"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"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testnet.jugugu.cn/GetGUGUBOXCreate721NFT' \
--header 'Content-Type: application/json' \
--data-raw '{
"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成功
application/json
Body
code
integer
请求状态
msg
string
提示信息
hash
string
交易hash
contract
string
合约地址
poapamount
string
忽略
nfts
array [object {2}]
创建的NFTs信息
id
string
NFT 的ID
owner
string
NFT 的所有者地址
示例
{
"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"
}
]
}
修改于 2023-02-10 11:47:27