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_deposit HTTP/1.1 Host: open-api.unisat.io Authorization: Bearer JWT Accept: */*
Default Response
{ "code": 1, "msg": "text", "data": { "psbt": "text", "type": "text", "expiredTimestamp": 1, "recommendDeposit": "text" } }
POST /v1/brc20-swap/confirm_deposit HTTP/1.1 Host: open-api.unisat.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 38 { "psbt": "text", "inscriptionId": "text" }
{ "code": 1, "msg": "text", "data": {} }