Skip to main content
Version: 2.0

Get ERC20 token balance by wallet

GEThttps://deep-index.moralis.io/api/v2/:address/erc20

Get token balances for a specific wallet address.

💡Thumbnail ONLY for ETH

Currently, the thumbnail field is only available for ERC20 token that exist on the Ethereum chain (eth or 0x1 chain input). Otherwise, the thumbnail will be returned as null.

PATH PARAMS
addressstringrequired
The address from which token balances will be checked
QUERY PARAMS
chainstring
The chain to query
to_blocknumber
The block number from which the balances should be checked
token_addressesarray
The addresses to get balances for (optional)
No items in the array
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.token.getWalletTokenBalances({
"chain": "0x1",
"address": "0x26fcbd3afebbe28d0a8684f790c48368d21665b5"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
Empty