AccountAssetsInformation - Algorand

Lookup an account's asset holdings.

Endpoint

httpGET /v2/accounts/{address}/assets

Path Parameters

ParameterTypeRequiredDescription
addressstringYesAn account public key.

Query Parameters

ParameterTypeRequiredDescription
limitintegerOptionalMaximum number of results to return.
nextstringOptionalThe next page of results. Use the next token provided by the previous results.

Example

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

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

Response

Returns application/json. Top-level fields:

FieldTypeDescription
asset-holdingsarray—
next-tokenstringUsed for pagination, when making another request provide this token with the next parameter.
roundintegerThe round for which this information is relevant.

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