API ReferenceWallet APIGet Wallet Net-worthGet wallet net worthGet wallet net worthGEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/net-worthCalculate the total net worth of a wallet in USD, with options to exclude spam tokens for accuracy. Options to query cross-chain using the chains parameter, as well as additional options to exclude spam tokens, low-liquidity tokens and inactive tokens.NoteWe recommend to filter out spam tokens and unverified contracts to get a more accurate result. Endpoint only works on the Mainnet chains.PATH PARAMSaddressstringrequiredThe wallet addressQUERY PARAMSchainsarrayThe chains to queryNo items in the arrayAdd Itemexclude_spambooleanExclude spam tokens from the resultfalsetrueexclude_unverified_contractsbooleanExclude unverified contracts 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 the net worth of a wallet in USD400Bad Request404Not Found429Too Many Requests500Internal Server ErrorAPI KEYTest Live APIcURLNode.jsPythonGoPHPcurl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/net-worth?exclude_spam=true&exclude_unverified_contracts=true&max_token_inactivity=1&min_pair_side_liquidity_usd=1000' \ --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/net-worth?exclude_spam=true&exclude_unverified_contracts=true&max_token_inactivity=1&min_pair_side_liquidity_usd=1000', 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/net-worth?exclude_spam=true&exclude_unverified_contracts=true&max_token_inactivity=1&min_pair_side_liquidity_usd=1000"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/net-worth?exclude_spam=true&exclude_unverified_contracts=true&max_token_inactivity=1&min_pair_side_liquidity_usd=1000" 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/net-worth?exclude_spam=true&exclude_unverified_contracts=true&max_token_inactivity=1&min_pair_side_liquidity_usd=1000', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns the net worth of a wallet in USD{ "total_networth_usd": "3879851.41", "chains": [ { "chain": "eth", "native_balance": "1085513807021271641379", "native_balance_formatted": "1085.513807021271641379", "native_balance_usd": "3158392.48", "token_balance_usd": "721458.93", "networth_usd": "3879851.41" } ], "unsupported_chain_ids": [ "" ], "unavailable_chains": [ { "chain_id": "0x1" } ]}