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/create_cancel_withdraw
curl -L \ --url 'https://open-api.unisat.io/v1/brc20-swap/create_cancel_withdraw?id=text' \ --header 'Authorization: Bearer JWT'
{ "code": 1, "msg": "text", "data": { "id": "text", "psbt": "text", "networkFee": 1 } }
/v1/brc20-swap/confirm_cancel_withdraw
curl -L \ --request POST \ --url 'https://open-api.unisat.io/v1/brc20-swap/confirm_cancel_withdraw' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"id":"text","psbt":"text"}'
{ "code": 1, "msg": "text", "data": {} }