Skip to content
Fourohtwo

Exact-input onchain pool quote via public-RPC eth_call

search.gedx402.com/v1/dex/price

Exact-input onchain pool quote via public-RPC eth_call. POST { token_in, token_out, amount_in, network? } on search.gedx402.com. $0.0050 USDC per request. Optional pool, fee, tick_spacing, or stable pins one pool; otherwise probes known Base pool types and returns the best amount_out. Spot estimate only. Source: Onchain pool quote. Agent search: dex price, pool quote, swap quote, amount out, oncha

BaseAnswering
POSThttps://search.gedx402.com/v1/dex/price

Uptime100% of 2 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://search.gedx402.com/v1/dex/price", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount_in":"1000000","network":"base","token_in":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","token_out":"0x4200000000000000000000000000000000000006"}),
});
console.log(await res.json());

Example input

{
  "amount_in": "1000000",
  "network": "base",
  "token_in": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "token_out": "0x4200000000000000000000000000000000000006"
}

More from GEDX402 SearchProvider status