Skip to content
Fourohtwo

On-chain token price for agents, ≤4 tokens/call

beggar-bot-demand.beggarbot.workers.dev/v1/tokenprice

On-chain token price for agents, ≤4 tokens/call: spot USD price from Uniswap v3 slot0 + Aerodrome reserves (pools derived by CREATE2, no indexer, no API key), deepest pool by quote-side liquidity, cross-pool spread, thin-liquidity/divergence flags, confidence. Base default; ethereum.

BaseUnchecked
GEThttps://beggar-bot-demand.beggarbot.workers.dev/v1/tokenprice

UptimeNot checked yet

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://beggar-bot-demand.beggarbot.workers.dev/v1/tokenprice?chain=base&tokens=0x940181a94A35A4569E4529A3CDfB74e38FD98631%2C0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf");
console.log(await res.json());

Example input

{
  "chain": "base",
  "tokens": "0x940181a94A35A4569E4529A3CDfB74e38FD98631,0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
}

More from Beggar Bot