Last updated 1 year ago
Please note that access to this API requires the API key to have brc20-swap permissions enabled.
/v1/brc20-swap/pre_deploy_pool
Timestamp (seconds)
curl -L \ --url 'https://open-api.unisat.io/v1/brc20-swap/pre_deploy_pool?address=text&tick0=text&tick1=text&ts=1' \ --header 'Authorization: Bearer JWT'
{ "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" } }
/v1/brc20-swap/deploy_pool
User signature
curl -L \ --request POST \ --url 'https://open-api.unisat.io/v1/brc20-swap/deploy_pool' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"address":"text","tick0":"text","tick1":"text","ts":1,"sig":"text"}'
{ "code": 1, "msg": "text", "data": {} }