Documentation Index
Fetch the complete documentation index at: https://docs.0xradar.app/llms.txt
Use this file to discover all available pages before exploring further.
TypeScript SDK
A typed TypeScript SDK for Node.js and browsers is in development.
Installation (coming soon)
Planned interface
import { RadarClient } from "@0xradar/sdk";
const client = new RadarClient({ apiKey: "rk_live_xxx" });
// Single chain
const balances = await client.balances({
address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
chain: "ethereum",
});
// Multi-chain portfolio
const portfolio = await client.portfolio({
address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
chains: ["ethereum", "base"],
});
// Sweep quote
const quote = await client.sweepQuote({
address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
chains: ["eth", "base"],
targetChain: "base",
});
Current workaround
Until the SDK is published, use fetch directly as shown in the API Reference.