Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
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.

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