A

Aiagentoracle · Execution Quote

by Aiagentoracle

POSTBase

$0.1

per call · USD Coin on Base

AgentOracle: use when choosing where to execute a Base swap. Compares live Uniswap V3 and KyberSwap routes by expected output, slippage, price impact, estimated gas, and gas-adjusted net execution price. Indicative results expire after 30 seconds.

Endpoint

POST https://aiagentoracle.ai/api/v1/execution/quote

3

Calls / 30d

1

Unique payers / 30d

Sep 6

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://aiagentoracle.ai/api/v1/execution/quote", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "amount": 0.1,
    "fromToken": "WETH",
    "network": "base",
    "slippageBps": 100,
    "toToken": "USDC"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://aiagentoracle.ai/api/v1/execution/quote" \
  -H "Content-Type: application/json" \
  -d '{"amount":0.1,"fromToken":"WETH","network":"base","slippageBps":100,"toToken":"USDC"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "bestRoute": {
    "confidence": "HIGH",
    "executable": false,
    "expectedOutput": 341.82,
    "expectedOutputAtomic": "341820000",
    "expiresAt": "2026-01-01T00:00:30Z",
    "feeBps": 5,
    "gasUnits": "112000",
    "gasUsd": 0.02,
    "grossExecutionPrice": 3418.2,
    "minimumOutput": 338.4018,
    "minimumOutputAtomic": "338401800",
    "netExecutionPrice": 3418,
    "priceImpactPercent": 0.08,
    "quoteType": "INDICATIVE",
    "rank": 1,
    "route": "WETH → USDC @ 0.05%",
    "slippageBps": 100,
    "source": "Uniswap V3 QuoterV2 on Base",
    "venue": "Uniswap V3"
  },
  "confidence": "HIGH",
  "disclaimer": "Indicative, read-only on-chain Quoter results; not executable calldata.",
  "expiresAt": "2026-01-01T00:00:30Z",
  "fromToken": "WETH",
  "inputAmount": 0.1,
  "inputAmountAtomic": "100000000000000000",
  "methodology": "Ranks live Uniswap V3 and KyberSwap routes after estimated gas.",
  "network": "eip155:8453",
  "quotedAt": "2026-01-01T00:00:00Z",
  "routes": [],
  "toToken": "USDC",
  "unavailableRoutes": []
}

Payment details

Pay to0x2fecabdfc849c76fdc28ca13aa0ab392753ef35c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Aiagentoracle & similar services