alchemy_getTokenBalances

Returns ERC-20 token balances for a given address.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
addressstringRequired

A 20-byte wallet address.

tokenSpecenum or list of stringsRequired

A token specification: - The string “erc20” - “DEFAULT_TOKENS” (deprecated) - An array of token contract addresses.

optionsobjectRequired

Optional pagination options.

Response

An object containing the queried address and an array of token balance objects.

addressstringOptionalformat: "^0x[0-9a-fA-F]{40}$"

Address for which token balances were returned.

tokenBalanceslist of objectsOptional

Array of token balance objects. Exactly one of tokenBalance or error is non-null.