v1

latestOpenAPI 3.0.32026-07-173986194.3 KB

Returns a consensus layer account.

get/consensus/accounts/{address}

Path parameters

addressstring required

An Oasis-style (bech32) address.

Example:oasis1qpg2xuz46g53737343r20yxeddhlvc2ldqsjh70p

The staking address of the account to return.

Response

A JSON object containing a consensus layer account.

addressstring required

The staking address for this account.

nonceinteger required

The expected nonce for the next transaction (= last used nonce + 1)

availablestring bigint required
escrowstring bigint required
debondingstring bigint required
delegations_balancestring bigint required
debonding_delegations_balancestring bigint required
first_activitystring date-time

The second-granular consensus time of the block in which this account was first active. Dates before Cobalt (2021-04-28) are approximate.

Example response

{
  "address": "oasis1qpg2xuz46g53737343r20yxeddhlvc2ldqsjh70p",
  "available": "1234567890123456789012",
  "escrow": "1234567890123456789012",
  "debonding": "1234567890123456789012",
  "delegations_balance": "1234567890123456789012",
  "debonding_delegations_balance": "1234567890123456789012",
  "first_activity": "2022-03-01T00:00:00Z",
  "allowances": [
    {
      "address": "oasis1qprtzrg97jk0wxnqkhxwyzy5qys47r7alvfl3fcg",
      "amount": "1234567890123456789012"
    }
  ],
  "stats": {
    "total_sent": "1234567890123456789012",
    "total_received": "1234567890123456789012",
    "num_txns": 4184
  }
}