3.获取POAP列表
POST
https://testnet.jugugu.cn/GUGUBOX_GetPOAPListTotal通过合约地址,获取POAP列表,返回 POAP的总数 和tokenid及对应的-总数-剩余数量。如果返回POAP总数100,那有1-100 的tokenID的POAP存在
请求参数
Body 参数application/json
phone
string
手机号
token
string
登录令牌
contract
string
POAP合约地址
chaintype
string
区块链类型
cfx代表conflux树图链
示例
{
"phone": "10101010101",
"account": "31c681bcb34c1457ab5b1521c340468ce106dfc6592bac55fb68f76994130d66",
"secret": "8d0f0b25c236af70c4980bea261b154745ccfba25e5683ef100a9e05b0922e88",
"time": 1651063790,
"openid": "951",
"randomtoken": "12qqqqUtcon1swwectetu1ssssssssssroccaecatveniam",
"paymentpassword": ""
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
请求返回代码
msg
string
请求返回附加信息
totalamount
integer
POAP的总数
nftsamount
array [object {3}]
必需
tokenid
integer
POAP的id
total
integer
该ID下POAP的总数量
release
integer
该ID下POAP的(领取后)剩余数量
示例
{
"code": 0,
"msg": "success",
"totalamount": 10,
"nftsamount": [
{
"tokenid": 1,
"total": 1000,
"release": 977
},
{
"tokenid": 2,
"total": 111,
"release": 111
},
{
"tokenid": 3,
"total": 200,
"release": 200
},
{
"tokenid": 4,
"total": 15,
"release": 13
},
{
"tokenid": 5,
"total": 100,
"release": 91
},
{
"tokenid": 6,
"total": 100,
"release": 94
},
{
"tokenid": 7,
"total": 100,
"release": 100
},
{
"tokenid": 8,
"total": 100,
"release": 98
},
{
"tokenid": 9,
"total": 10,
"release": 4
},
{
"tokenid": 10,
"total": 111,
"release": 111
}
]
}
修改于 2 年前