API ReferenceWallet APIGet Wallet Token BalancesGet Native & ERC20 Token Balances by WalletVersion: 2.2Get Native & ERC20 Token Balances by WalletGEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/tokensGet token balances for a specific wallet address and their token prices in USD.PATH PARAMSaddressstringrequiredThe address from which token balances will be checkedQUERY PARAMSchainstringThe chain to queryeth0x1sepolia0xaa36a7holesky0x4268polygon0x89polygon amoy0x13882bsc0x38bsc testnet0x61avalanche0xa86afantom0xfapalm0x2a15c308dcronos0x19arbitrum0xa4b1gnosis0x64gnosis testnet0x27d8chiliz0x15b38chiliz testnet0x15b32base0x2105base sepolia0x14a34optimism0xalinea0xe708linea sepolia0xe705moonbeam0x504moonriver0x505moonbase0x507flow0x2ebflow-testnet0x221ronin0x7e4ronin-testnet0x7e5lisk0x46flisk-sepolia0x106ato_blocknumberThe block number up to which the balances will be checked.token_addressesarrayThe addresses to get balances for (optional)No items in the arrayAdd Itemexclude_spambooleanExclude spam tokens from the resultfalsetrueexclude_unverified_contractsbooleanExclude unverified contracts from the resultfalsetruecursorstringThe cursor returned in the previous response (used for getting the next page).limitnumberThe desired page size of the result.exclude_nativebooleanExclude native balance from the resultfalsetrueResponses200 Returns ERC20 token balance, details, and additional financial information for a specific address, including pagination details.objectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = await Moralis.EvmApi.wallets.getWalletTokenBalancesPrice({ "chain": "0x1", "address": "0xcB1C1FdE09f811B294172696404e88E658659905" }); console.log(response.raw);} catch (e) { console.error(e);}from moralis import evm_apiapi_key = "YOUR_API_KEY"params = { "chain": "eth", "address": "0xcB1C1FdE09f811B294172696404e88E658659905"}result = evm_api.wallets.get_wallet_token_balances_price( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/tokens?chain=eth' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/tokens?chain=eth" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/tokens?chain=eth', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns ERC20 token balance, details, and additional financial information for a specific address, including pagination details.{ "cursor": "", "page": 2, "page_size": 100, "result": [ { "token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "symbol": "ETH", "name": "Ether", "logo": "https://cdn.moralis.io/eth/0x.png", "thumbnail": "https://cdn.moralis.io/eth/0x_thumb.png", "decimals": "", "balance": "360659174684349604", "possible_spam": "", "verified_contract": true, "balance_formatted": "0.360659174684349604", "usd_price": 3725.2775921204284, "usd_price_24hr_percent_change": 1.2028612707326054, "usd_price_24hr_usd_change": 44.80992138289679, "usd_value": 1343.5555418442548, "usd_value_24hr_usd_change": 16.161109263626145, "native_token": true, "portfolio_percentage": 55.7292 } ]}