Skip to main content
GET
/
wallets
/
{w}
/
holdings
On-chain holdings with cost-basis overlay
curl --request GET \
  --url https://api.dexploit.dev/wallets/{w}/holdings \
  --header 'X-API-Key: <api-key>'
{
  "wallet": "<string>",
  "holdings": [
    {
      "mint": "<string>",
      "qty": 123,
      "no_cost_basis": true,
      "price_stale": true,
      "cost_basis_sol": 123,
      "current_value_sol": 123,
      "current_value_usd": 123,
      "unrealized_pnl_sol": 123
    }
  ],
  "computed_at": 123
}

Authorizations

X-API-Key
string
header
required

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

Path Parameters

w
string
required

Wallet address (base58, 32–44 characters).

Query Parameters

dex
integer

Filter FIFO cost-basis computation to a single DEX by integer ID. See DexId for the mapping. Has no effect on the Shyft on-chain token list.

Response

Holdings with cost-basis

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

wallet
string
required
holdings_source
enum<string>
required

shyft = authoritative on-chain balances. fifo_fallback = Shyft was temporarily unavailable; list is derived from Dexploit's swap index only.

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

Unix epoch milliseconds when this response was assembled.