Developers
TypeScript SDK
Monorepo package @xauconnect/sdk — XauApiClient wraps all REST endpoints.
import { XauApiClient } from "@xauconnect/sdk";
const api = new XauApiClient({
baseUrl: "https://xauconnect.com/api",
clientId: "my-agent",
clientSource: "agent",
});
const { best } = await api.quote({ ... });
const tx = await api.buildSwap({ request, route: best!, minAmountOut });
await api.recordSwap({ ..., source: "agent" });