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_deposit
curl -L \ --url 'https://open-api.unisat.io/v1/brc20-swap/create_deposit?inscriptionId=text&pubkey=text&address=text' \ --header 'Authorization: Bearer JWT'
{ "code": 1, "msg": "text", "data": { "psbt": "text", "type": "text", "expiredTimestamp": 1, "recommendDeposit": "text" } }
/v1/brc20-swap/confirm_deposit
curl -L \ --request POST \ --url 'https://open-api.unisat.io/v1/brc20-swap/confirm_deposit' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"psbt":"text","inscriptionId":"text"}'
{ "code": 1, "msg": "text", "data": {} }