Get Address Balance

Please note that access to this API requires the API key to have brc20-swap permissions enabled.

Gets the balance for the specified address and tick.

GEThttps://open-api.unisat.io/v1/brc20-swap/balance
Query parameters
Response

Default Response

Body
code*number
msg*string
data*object
Request
const response = await fetch('https://open-api.unisat.io/v1/brc20-swap/balance?address=text&tick=text', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "code": 0,
  "msg": "text",
  "data": {
    "balance": {
      "module": "text",
      "swap": "text",
      "pendingSwap": "text",
      "pendingAvailable": "text"
    },
    "decimal": "text"
  }
}

Last updated