Home

Account asset balances

GET
https://dot-playbook.nownodes.io/v1/accounts/{accountId}/asset-balances

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Changed. If the query for some asset fails, the asset is no longer silently dropped: the response carries partial: true and the failed assets are listed in the new errors array (assetId, reason). When partial is true, a missing asset must not be treated as a zero balance. New query parameter strict: when true, the endpoint returns 503 instead of a partial 200. Addresses encoded with any SS58 prefix are now accepted; before, an address from another network was rejected with 400.

Returns asset balances for a given account on Asset Hub chains. A missing assetId means the account holds none of that asset; when partial is true the asset list is incomplete (some per-asset queries failed, see errors) and a missing assetId must NOT be treated as a zero balance.

Parameters

accountIdstringrequiredpath

SS58-encoded account address

atstringquery

Block hash or number to query at

useRcBlockbooleanquery

Treat 'at' as relay chain block identifier

assetsstringquery

Comma-separated list of asset IDs to query

showEmptybooleanquery

When true, include assets with zero balance (default: false). Even with showEmpty, an asset whose query failed is omitted and listed in errors (not returned as zero), so this does not guarantee one entry per requested asset under partial failure.

strictbooleanquery

When true, return 503 if any per-asset query fails instead of a partial 200 (default: false)

Response

200OK

Account asset balances (may be partial; check the partial flag)

400Bad Request

Invalid parameters

500Internal Server Error

Internal server error

503Service Unavailable

Service unavailable, or strict=true and a per-asset query failed