What is this token worth and where is it
app.gtxagent.com/x402/market/quote
What is this token worth and where is it? One Base token's contract, decimals and latest USDC quote in a single cheap call, for an agent that needs one number instead of the whole market.
GET
https://app.gtxagent.com/x402/market/quoteUptime100% of 3 checks 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://app.gtxagent.com/x402/market/quote?token=WETH");
console.log(await res.json());Example input
{
"token": "WETH"
}