# Base L2 Gas Price (Current)

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

Returns the current Base L2 network gas price in gwei by reading live chain state via eth_gasPrice.

## Facts

- Endpoint: GET https://payai.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-3b7fcc1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kvJPTFGyr7Sb1YYHAkMVs

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-3b7fcc1a
```

Example prompt: What's the current gas price on Base L2 right now in gwei? I want to know if it's a good time to submit a transaction.

## When to prefer this

Use this endpoint when you need a real-time, on-chain gas price for the Base L2 network specifically — ideal for agents deciding when to submit transactions, estimating transaction costs, or monitoring gas conditions on Base.

## Known failure modes

- RPC node unavailable — chain state cannot be read, returns error
- Network congestion causes stale or delayed gas price reading
- Invalid or unexpected response from underlying Base RPC endpoint

## 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 gas price on the Base L2 network expressed in gwei, as read directly from live chain state using eth_gasPrice.

## 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-3b7fcc1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
