Wallets API
A wallet's native balance at a specific past block
What a wallet's native-currency balance was at one specific historical block, in raw base units (the slot on SOL). ETH, BNB, BASE, STABLE, SOL.
GET
/api/external/wallet-analysis/wallet-balance-at-block/{chain}/{address}Chains
- Solana SOL
- BNB Chain BNB
- Ethereum ETH
- Stable STABLE
- 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-balance-at-block/SOL/<address>?block=<block>"
| Parameter | Description |
|---|---|
blockquery · integer · required | The block number to read the native balance at — on SOL, the slot. |
chainpath · string · required | The chain the wallet address belongs to. ETH, BNB, BASE, STABLE and SOL are served; RHC and ARC return 400. 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 |
|---|---|---|
nativeBalanceRaw | string | null | RAW base units (wei; lamports on SOL) at the requested block, as a decimal string, or null when the block could not be resolved (past the chain head, or otherwise unresolvable). Never decimalized: no decimals count is published for the native coin on this path. |
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