API Reference
Wallet Holdings
Tokens list (full + paginated)
Returns current wallet token holdings.
Note: the response is sanitized to remove the
imagefield.
Endpoints#
GET /wallet/holdings/:wallet
GET /wallet/holdings/:wallet/page/:page
Request (curl)#
curl -H "x-api-key: YOUR_KEY" \
https://us-east.dritan.dev/wallet/holdings/H8sH...Wallet
curl -H "x-api-key: YOUR_KEY" \
https://us-east.dritan.dev/wallet/holdings/H8sH...Wallet/page/1
Request (TypeScript, SDK)#
import { DritanClient } from "dritan-sdk";
const client = new DritanClient({ apiKey: "YOUR_KEY" });
const holdings = await client.getWalletHoldings("H8sH...Wallet");
console.log(holdings.totalSol, holdings.tokens.length);
const page1 = await client.getWalletHoldingsPage("H8sH...Wallet", 1);
console.log(page1.tokens.length);