Skip to content
Fourohtwo

Preflight an indexed chain-data query before payment

base-agent-preflight.bytoken2023.workers.dev/v1/x402/chain/indexed-query-preflig

Preflight an indexed chain-data query before payment: schema discovery, query type, estimated rows, cost fit, and safety flags.

BaseAnswering
GEThttps://base-agent-preflight.bytoken2023.workers.dev/v1/x402/chain/indexed-query-preflight

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://base-agent-preflight.bytoken2023.workers.dev/v1/x402/chain/indexed-query-preflight?chain=base&query_type=event_logs&estimated_rows=5000&max_price_usdc=0.02");
console.log(await res.json());

Example input

{
  "chain": "base",
  "query_type": "event_logs",
  "estimated_rows": "5000",
  "max_price_usdc": "0.02"
}

More from NoHands AiProvider status