lookupAccountAssets - Algorand

Lookup an account's asset holdings, optionally for a specific ID.

Endpoint

httpGET /v2/accounts/{account-id}/assets

Path Parameters

ParameterTypeRequiredDescription
account-idstringYesaccount string

Query Parameters

ParameterTypeRequiredDescription
asset-idintegerOptionalAsset ID
include-allbooleanOptionalInclude all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.
limitintegerOptionalMaximum number of results to return. There could be additional pages even if the limit is not reached.
nextstringOptionalThe next page of results. Use the next token provided by the previous results.

Example

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

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

Response

Returns application/json. Top-level fields:

FieldTypeDescription
assetsarray—
current-roundintegerRound at which the results were computed.
next-tokenstringUsed for pagination, when making another request provide this token with the next parameter.

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