Jugugu密钥Fast模式
  1. 深度接入
Jugugu密钥Fast模式
  • 深度接入
    • 1.注册jugugu
      POST
    • 2.注册jugugu登录
      POST
    • 3.jugugu获取小红花POAP
      POST
    • 4.使用jugugu进行交易签名
      POST
    • 5.jugugu获取用户NFT持有情况
      POST
    • 6.jugugu获取指定用户NFT持有情况
      POST
    • 7.jugugu转移小红花POAP NFT
      POST
  1. 深度接入

7.jugugu转移小红花POAP NFT

POST
https://testnet.jugugu.cn/Jugugu_FastTranferNFT
转移NFT,返回值为字符串,按字符串处理。仅“Waiting for transfer...”为正确返回

请求参数

Body 参数application/json
phone
string 
手机号
必需
account
string 
项目方账户
必需
通过接入jugugu申请
secret
string 
项目方密码
必需
通过接入jugugu申请
time
integer 
+8区Unix时间,单位秒
必需
int64类型
token
string 
登录令牌
必需
通过登录获得,首次注册时也会获得
openid
string 
项目方账户系统的唯一识别码
必需
项目方账户系统的唯一识别码,用于绑定登录jugugu系统
contract
string 
小红花POAP合约
必需
正式网合约:cfx:acb2027ht5t916d323zjfw9knrdj42fm8ay9n7e3x0 测试网合约:cfxtest:acbk50byfusjyh7494rm8yd8xhnkdh9jyetgadzem4
to
string 
转移的目的地址
必需
转移的目的地址
amount
string 
转移的数量
必需
转移的数量
nftid
string 
POAP的事件ID
必需
codestr
string 
小红花POAP领取码
必需
chaintype
string 
区块链类型
必需
这里填cfx即可
adminphone
string 
发起人的phone
必需
示例
{
    "phone": "10101010101",
    "account": "31c681bcb34c1457ab5b1521c340468ce106dfc6592bac55fb68f76994130d66",
    "secret": "8d0f0b25c236af70c4980bea261b154745ccfba25e5683ef100a9e05b0922e88",
    "time": 1652448516,
    "openid": "951",
    "token": "3d31f23988e8eeb09574a409d73239b671f22dd09e54e0bb5f261f48659603bb",
    "contract": "cfxtest:acbk50byfusjyh7494rm8yd8xhnkdh9jyetgadzem4",
    "nftid": "6",
    "to": "cfxtest:aarghz6gtnnghdz61jdz90gumy40k5d2aj93127ceh",
    "amount": "1",
    "adminphone": "18888888888",
    "paymentpassword": "",
    "chaintype": "cfx"
}

示例代码

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/Jugugu_FastTranferNFT' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phone": "10101010101",
    "account": "31c681bcb34c1457ab5b1521c340468ce106dfc6592bac55fb68f76994130d66",
    "secret": "8d0f0b25c236af70c4980bea261b154745ccfba25e5683ef100a9e05b0922e88",
    "time": 1652448516,
    "openid": "951",
    "token": "3d31f23988e8eeb09574a409d73239b671f22dd09e54e0bb5f261f48659603bb",
    "contract": "cfxtest:acbk50byfusjyh7494rm8yd8xhnkdh9jyetgadzem4",
    "nftid": "6",
    "to": "cfxtest:aarghz6gtnnghdz61jdz90gumy40k5d2aj93127ceh",
    "amount": "1",
    "adminphone": "18888888888",
    "paymentpassword": "",
    "chaintype": "cfx"
}'

返回响应

🟢200成功
text/plain
Body
object {0}
示例
Processing is in progress,or completed You can transfer again after 3 min
修改于 2022-06-03 11:39:12
上一页
6.jugugu获取指定用户NFT持有情况
Built with