Wallets API
A wallet's first balance change
The first transaction that ever changed a Solana wallet's balance -- when, in which token and by how much -- optionally narrowed to one token such as native SOL. Not who sent it.
/api/external/wallet-analysis/wallet-first-funded/{chain}/{address}What it returns
The first transaction that changed a wallet's balance: when (slot and time), in which token and by how much. Without token that is the first change in ANY token — often a token rather than SOL; pass token=So11111111111111111111111111111111111111111 for the first native-SOL change. It does not name who sent the funds; for the funder see wallet-funding.
Chains
- Solana SOL
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-first-funded/SOL/<address>"
| Parameter | Description |
|---|---|
tokenquery · string · optional | A token mint to narrow the answer to: the first change of the wallet's balance in that token. Omitted: the first change in any token. |
chainpath · string · required | The chain the wallet address belongs to. SOL; every other chain returns 400. |
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 |
|---|---|---|
address | string | The wallet asked about, as given. |
token | string | null | The token filter asked for; null when any token counts. |
firstChange | object | null | The earliest transaction that changed this wallet's balance (in token, when one was asked for); null when none is on file — a wallet never used, or one that never held that token. |
firstChange.transactionHash | string | The transaction signature, exactly as spelled. |
firstChange.blockNumber | integer | The slot the transaction landed in. |
firstChange.timestamp | integer | The block time, Unix seconds. |
firstChange.token | string | The token whose balance changed. Native SOL is So11111111111111111111111111111111111111111; wrapped SOL is a separate token. |
firstChange.amount | string | The signed change in the token's raw units, as a decimal string (it can exceed 2^53); divide by 10^decimals for whole tokens. |
firstChange.decimals | integer | The token's decimals. |
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