- 登录注册
- 微信注册/登录/查询
- 查询类
- 写入类
- 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 支付转移
- 积分控制
6.批量转移POAP与NFT
POST
https://testnet.jugugu.cn/GUGUBOX_TransferBatch
请求参数
Body 参数application/json
phone
string
手机号
token
string
登录Jugugu获得的通信令牌
paymentpassword
string
区块链短密钥
contract
string
合约地址
contracttype
string
合约类型
amounts
array[string]
必需
tokenids
array[string]
转移NFT id 数组
tos
array[string]
POAP合约地址
chaintype
string
区块链类型
示例
{
"phone": "13136617115",
"token": "pariatur dolore commodo officia",
"paymentpassword": "reprehenderit officia",
"contract ": "721",
"contracttype": "sunt",
"amounts": [
"62",
"81",
"98",
"99"
],
"tokenids": [
"85",
"2",
"96",
"28",
"19"
],
"tos": [
"sit irure occaecat in labore",
"voluptate esse in dolor nulla",
"adipisicing",
"esse labore",
"dolore elit aute sunt dolore"
],
"chaintype": "dolor sint qui mollit"
}
示例代码
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/GUGUBOX_TransferBatch' \
--header 'Content-Type: application/json' \
--data-raw '{
"phone": "13136617115",
"token": "pariatur dolore commodo officia",
"paymentpassword": "reprehenderit officia",
"contract ": "721",
"contracttype": "sunt",
"amounts": [
"62",
"81",
"98",
"99"
],
"tokenids": [
"85",
"2",
"96",
"28",
"19"
],
"tos": [
"sit irure occaecat in labore",
"voluptate esse in dolor nulla",
"adipisicing",
"esse labore",
"dolore elit aute sunt dolore"
],
"chaintype": "dolor sint qui mollit"
}'
返回响应
🟢200成功
application/json
Body
code
integer
请求状态
msg
string
提示信息
hash
string
交易hash
Contract
string
合约地址
total
integer
转移NFT的数量
transfers
array [object {3}]
转移详情
tokenid
string
转移的NFT的ID
from
string
转移的源地址
to
string
转移的目的地址
示例
{
"code": 0,
"msg": "success",
"hash": "0xb7c7aae12675ce62ecc374793814eddd3dd9e969a433f0a681d54238d87e111d",
"Contract": "cfxtest:accxhshya9wehuh08gc2kgujgp0sus7xd6bn90f18b",
"total": 1,
"transfers": [
{
"tokenid": "1",
"from": "cfxtest:aapsau0fgafbz53d3ke963r7mhgu16y592k3deunrw",
"to": "cfxtest:aatxudan1t6fxpjgmkrh4b0hyjy27pc5ne7e51rsah"
}
]
}
修改于 2022-12-05 17:06:54