alchemy_getTokenBalances
Returns ERC-20 token balances for a given address.
Path parameters
apiKey
Request
This endpoint expects an object.
address
A 20-byte wallet address.
tokenSpec
A token specification: - The string “erc20” - “DEFAULT_TOKENS” (deprecated) - An array of token contract addresses.
options
Optional pagination options.
Response
An object containing the queried address and an array of token balance objects.
address
Address for which token balances were returned.
tokenBalances
Array of token balance objects. Exactly one of tokenBalance or error is non-null.