[v2] Rune Balances
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
isincoming
-outgoing
. ThenetAmount
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 asprojectedBalance
for convenience.
bc1q0egjvlcfq77cxd9kvpgppyuxckzvws46e3sxch
Default Response
Invalid input
Unauthorized
Not found
Rate limit exceeded
Internal server error
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