Get BRC-100 Address Balances

get

Get address balances, including balance, balance transferrable.

Authorizations
Query parameters
addressstringRequired
pagenumberRequired

page index, max: 500

pageSizenumberRequired

page size, max: 20

Responses
200
Successful Operation.
application/json
get
GET /v1/indexer/brc100/address/balances HTTP/1.1
Host: open-api.inbrc.org
Authorization: Bearer API Key
Accept: */*
{
  "code": 1,
  "msg": "text",
  "data": {
    "total": 1,
    "pageSize": 1,
    "page": 1,
    "records": 1,
    "rows": [
      {
        "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