Wallets API
What a wallet is holding now
Every token a Solana wallet holds now, ranked by USD value, with the wallet-wide total and position count beside the list.
GET
/api/external/wallet-analysis/wallet-portfolio/{chain}/{address}Chains
- Solana SOL
- BNB Chain BNB
- Ethereum ETH
- Base BASE
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/wallet-analysis/wallet-portfolio/SOL/<address>"
| Parameter | Description |
|---|---|
chainpath · string · required | SOL, ETH, BNB and BASE are served; STABLE and ARC both return 400, and RHC does too — no source has been measured for current holdings on those three. On the EVM chains positionCount may be null: the source there publishes no count of its own, and a number is only reported when the whole wallet was provably seen in one page. Also on the EVM chains, tokens flagged as spam and tokens whose contract is unverified are left out of both the positions and the total. CELO, ARB, OP and SCROLL return 400 here. |
addresspath · string · required | The wallet address. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
positions | object[] | |
positions[].tokenAddress | string | The token address. Native SOL is given as the Wrapped SOL mint (So11111111111111111111111111111111111111112), so it works as-is on every token endpoint; check native to tell it from Wrapped SOL held as a token. Native ETH and BNB use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee. |
positions[].native | boolean | True for the chain's native coin (SOL, ETH, BNB) held directly by the wallet; false for a token, Wrapped SOL included. |
positions[].symbol | string | null | |
positions[].name | string | null | |
positions[].balance | number | null | |
positions[].valueUsd | number | null | |
totalValueUsd | number | null | |
positionCount | number | null |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key