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 wallet net worth

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

Calculate 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.

Note

We recommend to filter out spam tokens and unverified contracts to get a more accurate result.
Endpoint only works on the Mainnet chains.

PATH PARAMS
addressstringrequired
The wallet address
QUERY PARAMS
chainsarray
The chains to query
No items in the array
exclude_spamboolean
Exclude spam tokens from the result
exclude_unverified_contractsboolean
Exclude unverified contracts 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 the net worth of a wallet in USD
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/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'
Response Example
{
"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"
}
]
}