AgentGas by DevX
Gas for agents, cross-chain: pay USDC on Base with a gasless x402 payment (works with 0 ETH anywhere) and receive native gas on Base, Arbitrum, Optimism (ETH) or Polygon (POL) at any address. Price = native value at Chainlink spot +20% +$0.02. Params: to (optional; defaults to the payer), chain (base|arbitrum|optimism|polygon), amount (alias eth) or usd. Max $2/order. Auto-refund in USDC if we can
- Price per call
- $0.05
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 0
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://agentgas.madebydevx.com/v1/gas", { method: "GET" });
console.log(await res.json());https://agentgas.madebydevx.com/v1/gas