← all AgentPay tools

gas_tracker

Get current Ethereum gas prices (slow, standard, fast).

Free data x402 protocol no API key · no wallet

When agents use this

You need to know current Ethereum gas prices before submitting a transaction or estimating costs.

Parameters

None — call with an empty parameters object.

Returns

slow_gwei, standard_gwei, fast_gwei, base_fee_gwei, estimated confirmation times

Example response

{
  "slow_gwei": 1.5,
  "standard_gwei": 2.0,
  "fast_gwei": 3.0,
  "base_fee_gwei": 1.2,
  "source": "etherscan"
}

Call it — HTTP (x402)

curl -X POST https://agentpay.tools/tools/gas_tracker/call \
  -H 'Content-Type: application/json' \
  -d '{"parameters": {}, "agent_address": "<your wallet or any identifier>"}'

Call it — Python SDK

from agentpay import quickstart  # pip install agentpay-x402

s = quickstart(max_spend=0.10)   # hard budget cap; mints a wallet, no funding needed
r = s.call("gas_tracker", {})
print(r.data)                    # + r.cost, r.tx, r.network — full receipt

Call it — MCP

npx -y @romudille/agentpay-mcp   # keyless; exposes gas_tracker to any MCP agent runtime
All tools · x402 delivery scores · Receipt ledger · Guides · llms.txt · AgentPay