[v2] Rune Balances

get

Get confirmed and unconfirmed runes balance. balance fields explained:

  • confirmedBalance is the rune balance ignoring unconfirmed transactions in mempool.

  • availableBalance is the confirmed balance minus amounts used by any outgoing unconfirmed transaction in mempool.

  • projectedBalance is the final balance if all unconfirmed mempool transactions are confirmed.

  • pendingBalance is a breakdown of the unconfirmed transactions amounts. They represent aggregate amounts for the whole mempool activity, so as more transactions are chained together the amounts will increase.

    • incomingAmount is the sum of all incoming unconfirmed amounts.

    • outgoingAmount is the sum of all outgoing unconfirmed amounts.

    • netAmount is incoming - outgoing. The netAmount can be negative, when sending more than receiving. It should always match what is expected to be added to the confirmed balance when all unconfirmed transactions are confirmed, which is computed as projectedBalance for convenience.

Authorizations
Path parameters
addressstring · BitcoinAddress · min: 10RequiredDefault: bc1q0egjvlcfq77cxd9kvpgppyuxckzvws46e3sxch
Query parameters
runeIdstringOptional
Responses
200

Default Response

application/json
get
GET /v2/runes/address/{address}/balance HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Accept: */*
{
  "balances": [
    {
      "runeId": "text",
      "divisibility": 1,
      "symbol": "text",
      "runeName": "text",
      "confirmedBalance": "text",
      "availableBalance": "text",
      "projectedBalance": "text",
      "pendingBalance": {
        "incomingAmount": "text",
        "outgoingAmount": "text",
        "netAmount": "text"
      }
    }
  ],
  "indexerHeight": 1
}

Last updated