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 Native & ERC20 Token Balances by Wallet

GEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/tokens

Fetch ERC20 and native token balances for a given wallet address, including their USD prices. Each token returned includes on-chain metadata, as well as off-chain metadata, logos, spam status and more. Additional options to exclude spam tokens, low-liquidity tokens and inactive tokens.

PATH PARAMS
addressstringrequired
The address from which token balances will be checked
QUERY PARAMS
chainstring
The chain to query
to_blocknumber
The block number up to which the balances will be checked.
token_addressesarray
The addresses to get balances for (optional)
No items in the array
exclude_spamboolean
Exclude spam tokens from the result
exclude_unverified_contractsboolean
Exclude unverified contracts from the result
cursorstring
The cursor returned in the previous response (used for getting the next page).
limitnumber
The desired page size of the result.
exclude_nativeboolean
Exclude native balance from the result
max_token_inactivitynumber
Exclude tokens inactive for more than the given amount of days
min_pair_side_liquidity_usdnumber
Exclude tokens with liquidity less than the specified amount in USD. This parameter refers to the liquidity on a single side of the pair.
Responses
200Returns token balances with prices 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/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/tokens?chain=eth&limit=25' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"page": "2",
"page_size": "100",
"block_number": "13680123",
"cursor": "",
"result": [
{
"token_address": "",
"name": "",
"symbol": "",
"logo": "",
"thumbnail": "",
"decimals": "",
"balance": "",
"possible_spam": "",
"verified_contract": "",
"usd_price": "",
"usd_price_24hr_percent_change": "",
"usd_price_24hr_usd_change": "",
"usd_value_24hr_usd_change": "",
"usd_value": "",
"portfolio_percentage": "",
"balance_formatted": "",
"native_token": "",
"total_supply": "",
"total_supply_formatted": "",
"percentage_relative_to_total_supply": ""
}
]
}