# agent402.tools Gas Price Snapshot

> agent402.tools Gas Price Snapshot is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns a live gas price snapshot for a specified EVM chain, including slow/standard/fast tiers in gwei and the latest base fee, sampled from eth_feeHistory.

## Facts

- Endpoint: POST https://agent402.tools/api/gas-snapshot
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-gas-price-snapshot-88fbd896
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B-iT2ekNOt6q5Axl2n03T

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-gas-price-snapshot-88fbd896 -d '<json body>'
```

Example prompt: What are the current slow, standard, and fast gas prices on Ethereum right now — I need the gwei tiers and the latest base fee before I broadcast a transaction.

## When to prefer this

Use this endpoint when an agent needs a real-time, multi-tier gas price estimate (slow/standard/fast) for EVM-compatible chains before constructing or broadcasting a transaction. Prefer it over static estimates or manual RPC calls when you need percentile-based fee history across Ethereum, Base, Polygon, Arbitrum, or Optimism in a single call.

## Known failure modes

- Unsupported network name returns an error or defaults to Base
- RPC node unavailability for the target chain causes fetch failure
- Stale data if sampled blocks are delayed
- Invalid or missing network field may default to Base silently

## How this service works

Live gas price snapshot for a chain - slow / standard / fast tiers in gwei, plus the latest base fee. Sampled from eth_feeHistory (last 4 blocks, 25th/50th/90th percentile priority fees). Use to estimate before broadcasting a transaction from another tool.

## Output

A snapshot object containing gas price tiers (slow, standard, fast) in gwei plus the current base fee, derived from eth_feeHistory over the last 4 blocks at the 25th, 50th, and 90th percentile priority fees for the requested network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "type": "string",
   "description": "ethereum / base / polygon / arbitrum / optimism (default base)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fast": {
   "totalGwei": 0.01,
   "priorityFeeGwei": 0.005
  },
  "slow": {
   "totalGwei": 0.006,
   "priorityFeeGwei": 0.001
  },
  "chainId": 8453,
  "network": "base",
  "standard": {
   "totalGwei": 0.007,
   "priorityFeeGwei": 0.002
  },
  "baseFeeGwei": 0.005
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-gas-price-snapshot-88fbd896/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
