lookupAccountByID - Algorand

Lookup account information.

Endpoint

httpGET /v2/accounts/{account-id}

Path Parameters

ParameterTypeRequiredDescription
account-idstringYesaccount string

Query Parameters

ParameterTypeRequiredDescription
roundintegerOptionalInclude results for the specified round.
include-allbooleanOptionalInclude all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.
excludearrayOptionalExclude additional items such as asset holdings, application local data stored for this account, asset parameters created by this account, and application param

Example

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

curl "${ALGO_INDEXER}v2/accounts/REPLACE_ACCOUNT-ID"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
accountobjectAccount information at a given round.
current-roundintegerRound at which the results were computed.

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