Skip to content
Fourohtwo

Token price on Base by contract address

aether-x402.vercel.app/v1/base/price

Token price on Base by contract address: live USD price and pool liquidity from Uniswap v2/v3 and Aerodrome. Works for any token with a DEX pool, including newly launched ones

BaseAnswering
POSThttps://aether-x402.vercel.app/v1/base/price

Uptime100% 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

// 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://aether-x402.vercel.app/v1/base/price", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"token":"0x940181a94A35A4569E4529A3CDfB74e38FD98631"}),
});
console.log(await res.json());

Example input

{
  "token": "0x940181a94A35A4569E4529A3CDfB74e38FD98631"
}

More from AetherProvider status