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

Get ERC20 Token Balance by Wallet

GEThttps://deep-index.moralis.io/api/v2.2/: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
exclude_spamboolean
Exclude spam tokens from the result
Responses
200Returns ERC20 token balance and details for a specific address
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326/erc20?chain=eth' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
[
{
"token_address": "0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09",
"name": "Kylin Network",
"symbol": "KYL",
"logo": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
"thumbnail": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c_thumb.png",
"decimals": 6,
"balance": "123456789",
"possible_spam": "",
"verified_collection": "",
"total_supply": "10000000000000000",
"total_supply_formatted": "10000000000",
"percentage_relative_to_total_supply": 1.0035
}
]