x402 API
Tokens.xyz mint dossier for one asset. Pay with USDC via HTTP 402. Syra machine money for agents.
/assets/detail
x402
Price: $0.005 USD per successful paid call (catalog hint; runtime 402 is authoritative)
Base URL: https://api.syraa.fun
Full asset dossier: profile, risk, markets, and 1H OHLCV for a canonical asset. Use when an agent researches BTC, SOL, a stock token, or any Tokens.xyz asset by ref/mint/assetId. Inputs: ref, mint, assetId, or q. Returns asset, includes (profile/risk/markets), ohlcv candles, mintRisk.
This is a pay-per-call route: unpaid requests return HTTP 402 until you settle USDC and retry with PAYMENT-SIGNATURE or X-PAYMENT. See x402 wire format.
import { createSyraPaidClient } from "@syra-ai/sdk";
const client = createSyraPaidClient({
// funds USDC on Solana/Base; auto-pays HTTP 402
});
const res = await client.fetch("https://api.syraa.fun/assets/detail", {
method: "GET",
});
console.log(await res.json());