Ticket Sale
-Get ticket sale info
Request URL
/api/ticket-sale/sale
Method
POST
Parameter
Parameter name
Required
Type
Explain
stage_num
Yes
string
stage num,default 1
Return example
{
"code": 0,
"data": {
"id": 1,
"chain_type": 1,
"stage_num": 1,
"sale": 1,
"pay_list": [
{
"price": "10000000000000000000",
"cat_id": 1,
"address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
"remaining": "50",
"show_price": "10.000000000000000000",
"token_index": 0
},
{
"price": "20000000000000000000",
"cat_id": 2,
"address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
"remaining": "50",
"show_price": "20.000000000000000000",
"token_index": 0
},
{
"price": "30000000000000000000",
"cat_id": 3,
"address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
"remaining": "50",
"show_price": "30.000000000000000000",
"token_index": 0
},
{
"price": "40000000000000000000",
"cat_id": 4,
"address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
"remaining": "50",
"show_price": "40.000000000000000000",
"token_index": 0
},
{
"price": "50000000000000000000",
"cat_id": 5,
"address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
"remaining": "50",
"show_price": "50.000000000000000000",
"token_index": 0
},
{
"price": "100000000000000000",
"cat_id": 1,
"address": "0x0000000000000000000000000000000000000000",
"remaining": "28",
"show_price": "0.100000000000000000",
"token_index": 2
},
{
"price": "200000000000000000",
"cat_id": 2,
"address": "0x0000000000000000000000000000000000000000",
"remaining": "28",
"show_price": "0.200000000000000000",
"token_index": 2
},
{
"price": "300000000000000000",
"cat_id": 3,
"address": "0x0000000000000000000000000000000000000000",
"remaining": "28",
"show_price": "0.300000000000000000",
"token_index": 2
},
{
"price": "400000000000000000",
"cat_id": 4,
"address": "0x0000000000000000000000000000000000000000",
"remaining": "28",
"show_price": "0.400000000000000000",
"token_index": 2
},
{
"price": "500000000000000000",
"cat_id": 5,
"address": "0x0000000000000000000000000000000000000000",
"remaining": "28",
"show_price": "0.500000000000000000",
"token_index": 2
}
],
"created_at": "2022-04-11 13:40:18",
"updated_at": "2022-04-13 08:01:14"
},
"extra": null
}
Return parameter description
Parameter name
Type
Explain
sale
bool
1:in sale,0: not in sale
pay_list
json
Method of Paymen
Pay_list
Parameter name
Type
Explain
price
int
Contract initial price
cat_id
int
Ticket classified id
address
address
Token address,Zero address means the main token
remaining
int
Remaining amount
show_price
int
Show price
Last updated