Skip to content
Fourohtwo

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

Guard an agent payment for RPC or indexed chain-data access with endpoint, recipient, amount, budget, and signer-directive checks.

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

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/agent/rpc-payment-guard?chain=base&method=eth_getLogs&pay_to=0x94F751f04b98507D31b500b7Ed50bE68A1514873&request_id=rpc-request-1&amount_usdc=0.001&endpoint_url=https%3A%2F%2Fx402.example.com%2Frpc%2Fbase&max_single_usdc=0.01&session_budget_usdc=1.00");
console.log(await res.json());

Example input

{
  "chain": "base",
  "method": "eth_getLogs",
  "pay_to": "0x94F751f04b98507D31b500b7Ed50bE68A1514873",
  "request_id": "rpc-request-1",
  "amount_usdc": "0.001",
  "endpoint_url": "https://x402.example.com/rpc/base",
  "max_single_usdc": "0.01",
  "session_budget_usdc": "1.00"
}

More from NO HANDS AI x402scanProvider status