Deploy Pool
Please note that access to this API requires the API key to have brc20-swap permissions enabled.
Authorizations
Query parameters
addressstringRequired
tick0stringRequired
tick1stringRequired
tsnumberRequired
Timestamp (seconds)
Responses
200
Default Response
application/json
get
GET /v1/brc20-swap/pre_deploy_pool HTTP/1.1
Host: open-api.unisat.io
Authorization: Bearer JWT
Accept: */*
200
Default Response
{
"code": 1,
"msg": "text",
"data": {
"signMsg": "text",
"bytesL1": 1,
"bytesL2": 1,
"feeRate": "text",
"gasPrice": "text",
"serviceFeeL1": "text",
"serviceFeeL2": "text",
"unitUsdPriceL1": "text",
"unitUsdPriceL2": "text",
"serviceTickBalance": "text"
}
}
Authorizations
Body
addressstringRequired
tick0stringRequired
tick1stringRequired
tsnumberRequired
Timestamp (seconds)
sigstringRequired
User signature
Responses
200
Default Response
application/json
post
POST /v1/brc20-swap/deploy_pool HTTP/1.1
Host: open-api.unisat.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"address": "text",
"tick0": "text",
"tick1": "text",
"ts": 1,
"sig": "text"
}
200
Default Response
{
"code": 1,
"msg": "text",
"data": {}
}
Last updated