x402-agent.kariguetoazul.workers.dev/api/crypto
Current cryptocurrency price in USD and EUR with 24-hour change, by coin id (bitcoin, ethereum, solana, and any other). Use it to look up what a token costs right now, or to price something in crypto. Returns price, 24h change and data source.
GET
https://x402-agent.kariguetoazul.workers.dev/api/cryptoUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402-agent.kariguetoazul.workers.dev/api/crypto?coin=bitcoin");
console.log(await res.json());Example input
{
"coin": "bitcoin"
}