# AgentsToolsHub Gas Price

> AgentsToolsHub Gas Price is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Fetches live gas prices from Base or Ethereum public RPC nodes, returning wei, gwei, and a USD cost estimate for a standard 21,000-gas transfer.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/crypto/gas-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstoolshub-gas-price-c6e742c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zd_Rf-OlZuEWtBf0CY64L

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 agentstoolshub-gas-price-c6e742c8
```

Example prompt: What's the current gas price on Ethereum right now in gwei and USD — ETH is trading at $3,200?

## When to prefer this

Use this endpoint when you need a real-time, on-chain gas price without managing your own RPC infrastructure or API keys, and you want a ready-made USD cost estimate for a standard 21,000-gas transfer alongside the raw gwei figure. Ideal for agents that need quick gas checks on Base or Ethereum mainnet before deciding whether to execute a transaction.

## Known failure modes

- RPC node unavailable or rate-limited — upstream connection error
- Invalid or missing ethPriceUsd parameter — request fails validation
- Unsupported chain value supplied — rejected by enum constraint
- Network congestion may cause stale or delayed gas price readings
- Payment of 0.002 USDC not completed — 402 response blocking access

## How this service works

Fetch the live gas price from public RPC nodes on Base or Ethereum: wei per unit gas, converted to gwei, with a USD estimate for a standard 21,000-gas transfer using your own ETH price input. No API key needed. Use this when an agent needs to current gas price in gwei and USD, straight from the chain.

## Output

Returns the current gas price fetched directly from public RPC nodes: the raw value in wei, the converted value in gwei, and a USD cost estimate for a standard 21,000-gas transfer computed using the caller-supplied ETH/USD price. No API key required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ethPriceUsd"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Chain"
      },
      "ethPriceUsd": {
       "type": "number",
       "description": "ETH price (USD)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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