Skip to main content

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)

npm install @0xradar/sdk

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.
Star 0xradarapp/sdk-typescript on GitHub to get notified on release.