AccountInformation - Algorand

Given a specific account public key, this call returns the account's status, balance and spendable amounts.

Endpoint

httpGET /v2/accounts/{address}

Path Parameters

ParameterTypeRequiredDescription
addressstringYesAn account public key.

Query Parameters

ParameterTypeRequiredDescription
excludearrayOptionalExclude additional items from the account. Use all to exclude asset holdings, application local state, created asset parameters, and created application param
formatstringOptionalConfigures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON.

Example

bashexport ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${ALGO_ALGOD}v2/accounts/REPLACE_ADDRESS"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
addressstringthe account public key
amountinteger[algo] total number of MicroAlgos in the account
amount-without-pending-rewardsintegerspecifies the amount of MicroAlgos in the account, without the pending rewards.
apps-local-statearray[appl] applications local data stored in this account.
apps-total-extra-pagesinteger[teap] the sum of all extra application program pages for this account.
apps-total-schemaobjectSpecifies maximums on the number of each type that may be stored.
assetsarray[asset] assets held by this account.
auth-addrstring[spend] the address against which signing should be checked. If empty, the address of the current account is used. This field can be updated in any transactio
created-appsarray[appp] parameters of applications created by this account including app global data.
created-assetsarray[apar] parameters of assets created by this account.
incentive-eligiblebooleanWhether or not the account can receive block incentives if its balance is in range at proposal time.
last-heartbeatintegerThe round in which this account last went online, or explicitly renewed their online status.
last-proposedintegerThe round in which this account last proposed the block.
min-balanceintegerMicroAlgo balance required by the account.
participationobjectAccountParticipation describes the parameters used by this account in consensus protocol.
pending-rewardsintegeramount of MicroAlgos of pending rewards in this account.
reward-baseinteger[ebase] used as part of the rewards computation. Only applicable to accounts which are participating.
rewardsinteger[ern] total rewards of MicroAlgos the account has received, including pending rewards.
roundintegerThe round for which this information is relevant.
sig-typestringIndicates what type of signature is used by this account, must be one of:
statusstring[onl] delegation status of the account's MicroAlgos
total-apps-opted-inintegerThe count of all applications that have been opted in, equivalent to the count of application local data (AppLocalState objects) stored in this account.
total-assets-opted-inintegerThe count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
total-box-bytesinteger[tbxb] The total number of bytes used by this account's app's box keys and values.
total-boxesinteger[tbx] The number of existing boxes created by this account's app.
total-created-appsintegerThe count of all apps (AppParams objects) created by this account.
total-created-assetsintegerThe count of all assets (AssetParams objects) created by this account.

Error Handling

ErrorMessageDescription
400Bad requestA parameter was missing or malformed
404Not foundThe requested resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect