Get BRC-100 Address Balance

get

Get address balance by ticker, including balance, balance transferrable.

Authorizations
Query parameters
addressstringRequired
tickerstringRequired
Responses
200
Successful Operation.
application/json
get
GET /v1/indexer/brc100/address/balance HTTP/1.1
Host: open-api.inbrc.org
Authorization: Bearer API Key
Accept: */*
{
  "code": 1,
  "msg": "text",
  "data": {
    "protocol": "text",
    "ticker": "text",
    "user": "text",
    "balance": "text",
    "balanceTransferrable": "text"
  }
}

Like BRC-20, there are two types of balances in BRC-100, but the caculation of UTXO balance is different from BRC-20:

  • balance: the total balance of address, "mint"/"mint2"/"mint3" inscriptions inscribed + "transfer" inscriptions transferred to address - "transfer"/"burn"/"burn2"/"burn3" inscriptions transferred from address. The "status" attribute of inscriptions should be 2 (success).

  • balanceTransferrable: the balance inscribed as "transfer"/"burn"/"burn2"/"burn3" inscriptions, "transfer"/"burn"/"burn2"/"burn3" inscriptions inscribed - "transfer"/"burn"/"burn2"/"burn3" inscriptions transferred from address. The "status" attribute of inscriptions should be 2 (success).

  • Balance Available: balance - balanceTransferrable, the balance can be inscribed.

Last updated