Skip to content
Fourohtwo

x402.santyvv.com/api/chain/gas

Current gas price plus the 25th, 50th and 75th percentile of effective priority fees over the last blocks, and the base fee trend, all in gwei. What a wallet or a bot needs to decide what to pay, without running a node or hitting an explorer API.

BaseAnswering
GEThttps://x402.santyvv.com/api/chain/gas

Uptime100% of 1 check 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.santyvv.com/api/chain/gas?chain=Red+EVM%3A+base%2C+ethereum%2C+arbitrum%2C+optimism%2C+polygon+%28por+defecto%3A+base%29+Ejemplo%3A+base&bloques=Ventana+de+bloques+%281-20%29+%28por+defecto%3A+5%29+Ejemplo%3A+5");
console.log(await res.json());

Example input

{
  "chain": "Red EVM: base, ethereum, arbitrum, optimism, polygon (por defecto: base) Ejemplo: base",
  "bloques": "Ventana de bloques (1-20) (por defecto: 5) Ejemplo: 5"
}

More from santyvv-data