Skip to content
Fourohtwo

Preflight an agent RPC or x402 chain-data request before payment

base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent/rpc-preflight

Preflight an agent RPC or x402 chain-data request before payment: endpoint origin, method risk, chain fit, price, and budget checks.

BaseAnswering
GEThttps://base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent/rpc-preflight

Uptime100% of 5 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/agent/rpc-preflight?chain=base&method=eth_blockNumber&endpoint_url=https%3A%2F%2Fx402.example.com%2Frpc%2Fbase&max_price_usdc=0.001&session_budget_usdc=1.00");
console.log(await res.json());

Example input

{
  "chain": "base",
  "method": "eth_blockNumber",
  "endpoint_url": "https://x402.example.com/rpc/base",
  "max_price_usdc": "0.001",
  "session_budget_usdc": "1.00"
}

More from NoHands AiProvider status