Skip to main content
GET
On-chain holdings with cost-basis overlay

Authorizations

X-API-Key
string
header
required

Preferred for the swap endpoints (/swaps/*, /stats/*, /trending, /pool-events).

Path Parameters

w
string
required

Wallet address (base58, 32–44 characters).

Query Parameters

dex
string

Filter the cost-basis computation to one or more DEXes: a comma-separated list of integer IDs and/or lowercase names (e.g. pumpfun,raydium_clmm or 1,4). See DexId for the id-to-name mapping. A name that is not in DexId is ignored; if none of the values match, the result is empty. Has no effect on the on-chain token list.

Response

Holdings with cost-basis

Response from /wallets/{w}/holdings. holdings_source indicates whether the token list came from on-chain balances (authoritative) or fell back to FIFO-derived data.

wallet
string
required
holdings_source
enum<string>
required

live = on-chain balances (read within the last 30 seconds; authoritative). fifo_fallback = on-chain balances were unavailable; the list is derived from Dexploit's swap index only.

Available options:
live,
fifo_fallback
holdings
object[]
required
computed_at
integer<int64>
required

Unix epoch milliseconds when this response was assembled.

truncated
boolean

true when the wallet's history is too large to compute cost basis; holdings are still returned from on-chain balances with no_cost_basis set on every row.

cost_basis_available
boolean

false when cost basis could not be computed (see truncated).