# Base L2 Gas Price (Current)

> Base L2 Gas Price (Current) is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the current gas price on the Base L2 network in gwei, read live from chain state via eth_gasPrice.

## Facts

- Endpoint: GET https://api.agentstools.dev/gas
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-l2-gas-price-current-7b0d458b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l2_QfjLwpxXPn9V0Mhag2

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 base-l2-gas-price-current-7b0d458b
```

Example prompt: What's the current gas price on Base L2 right now in gwei?

## When to prefer this

Use this endpoint when you need the current real-time gas price on the Base L2 network specifically, as opposed to Ethereum mainnet or other L2s. Ideal for agents that need to estimate transaction costs, time transactions for low-fee windows, or gate actions on gas price thresholds on Base.

## Known failure modes

- Chain RPC node unavailable or lagging — stale or missing price data
- Network congestion causing delayed response
- Payment not authorized (x402 payment required, $0.005 USDC per call)
- Malformed request if HTTP method is not GET/HEAD/DELETE

## How this service works

EVM gas oracle for any major chain - Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, Avalanche: next-block baseFee plus slow, med and fast priority-fee tiers (maxFeePerGas and maxPriorityFeePerGas), read live from chain state in one call. Choose network (default Ethereum). EIP-1559 and legacy handled.

## Output

Returns the current Base L2 gas price as a numeric value in gwei, sourced live from the Base chain via eth_gasPrice RPC call.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "network": {
       "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "optimism",
        "polygon",
        "bnb",
        "avalanche"
       ],
       "type": "string",
       "description": "EVM network (default ethereum)."
      }
     }
    }
   },
   "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/base-l2-gas-price-current-7b0d458b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
