Last updated 1 year ago
Please note that access to this API requires the API key to have brc20-swap permissions enabled.
GET /v1/brc20-swap/create_withdraw HTTP/1.1 Host: open-api.unisat.io Authorization: Bearer JWT Accept: */*
Default Response
{ "code": 1, "msg": "text", "data": { "id": "text", "paymentPsbt": "text", "approvePsbt": "text", "networkFee": 1, "signMsg": "text", "bytesL1": 1, "bytesL2": 1, "feeRate": "text", "gasPrice": "text", "serviceFeeL1": "text", "serviceFeeL2": "text", "unitUsdPriceL1": "text", "unitUsdPriceL2": "text", "serviceTickBalance": "text" } }
The withdraw order id
POST /v1/brc20-swap/confirm_withdraw HTTP/1.1 Host: open-api.unisat.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 68 { "id": "text", "sig": "text", "paymentPsbt": "text", "approvePsbt": "text" }
{ "code": 1, "msg": "text", "data": {} }