x402 API
Tokens.xyz curated assets board with filter and sort. Pay with USDC via HTTP 402. Syra machine money for agents.
/assets
x402
Price: $0.001 USD per successful paid call (catalog hint; runtime 402 is authoritative)
Base URL: https://api.syraa.fun
Paginated curated assets board (crypto + tokenized stocks) from Tokens.xyz — same data as the Syra Assets page. Use when an agent needs a ranked market universe, not a single asset. Inputs: list (all|majors|stocks|…), assetClass, q, sort, order, limit, offset. Returns items[] with price, marketCap, volume, assetClass.
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", {
method: "GET",
});
console.log(await res.json());