402x402.direct

http://api.dirtroad.dev/tools/web3/evm/eth-gas-price

by dirtroad.dev

Retrieve the current gas price suggested by the blockchain network. Returns the gas price in wei as a hex string. Essential for estimating transaction fees and setting appropriate gas prices for transaction submission.

developerbase-mainnetscheme: exact$0.0001

Payment Options

NetworkPriceSchemePay To
base100exact0x71dc0Bc68e7f0e2c5aaCE661b0F3Fb995a80AAF4

Usage

cURL
curl -X GET "http://api.dirtroad.dev/tools/web3/evm/eth-gas-price" \ -H "X-402-Payment: <payment_proof>"
JavaScript
const response = await fetch("http://api.dirtroad.dev/tools/web3/evm/eth-gas-price", { headers: { "X-402-Payment": paymentProof, }, }); const data = await response.json();

Details

Type
http
x402 Version
1
MIME Type
application/json
Last Seen
2/12/2026
Indexed
2/12/2026

Facilitator

PayAI

https://facilitator.payai.network