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 stringsOptional

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

optionsobjectOptional
Optional pagination options.

Response

An object containing the queried address and an array of token balance objects.
addressstring or nullformat: "^0x[0-9a-fA-F]{40}$"
Address for which token balances were returned.
tokenBalanceslist of objects or null

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