API ReferenceWallet APIGet Wallet Token BalancesGet Native & ERC20 Token Balances by WalletGet 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 testnet0x61avalanche0xa86afantom0xfacronos0x19arbitrum0xa4b1gnosis0x64gnosis testnet0x27d8chiliz0x15b38chiliz testnet0x15b32base0x2105base sepolia0x14a34optimism0xalinea0xe708linea sepolia0xe705moonbeam0x504moonriver0x505moonbase0x507flow0x2ebflow-testnet0x221ronin0x7e4ronin-testnet0x7e5lisk0x46flisk-sepolia0x106apulse0x171to_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 resultfalsetruemax_token_inactivitynumberExclude tokens inactive for more than the given amount of daysmin_pair_side_liquidity_usdnumberExclude tokens with liquidity less than the specified amount in USD. This parameter refers to the liquidity on a single side of the pair.Responses200Returns ERC20 token balance, details, and additional financial information for a specific address, including pagination details.400Bad Request404Not Found429Too Many Requests500Internal Server ErrorAPI KEYTest Live APIcURLNode.jsPythonGoPHPcurl --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' // Node.js v18+ has native fetch support// No additional dependencies requiredconst options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/tokens?chain=eth&limit=25', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/tokens?chain=eth&limit=25"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)package mainimport ( "fmt" "net/http" "io")func main() { url := "https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/tokens?chain=eth&limit=25" 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, _ := io.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&limit=25', [ '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 } ]}