Deposit

Create a deposit psbt to be signed by the user.

get
Authorizations
Query parameters
inscriptionIdstringRequired
pubkeystringRequired
addressstringRequired
Responses
200
Default Response
application/json
get
GET /v1/brc20-swap/create_deposit HTTP/1.1
Host: open-api.unisat.io
Authorization: Bearer JWT
Accept: */*
200

Default Response

{
  "code": 1,
  "msg": "text",
  "data": {
    "psbt": "text",
    "type": "text",
    "expiredTimestamp": 1,
    "recommendDeposit": "text"
  }
}

User signature deposit psbt, submit confirmation.

post
Authorizations
Body
psbtstringRequired
inscriptionIdstringRequired
Responses
200
Default Response
application/json
post
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"
}
200

Default Response

{
  "code": 1,
  "msg": "text",
  "data": {}
}

Last updated