# Base L2 Current Gas Price (x402node)

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

Returns the current gas price in gwei on the Base L2 mainnet by calling eth_gasPrice via LlamaRPC, with no input parameters required.

## Facts

- Endpoint: GET https://api.x402node.dev/chain/base-gas
- 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/api-x402node-dev-0c8166fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MZKOTZpZhUIbtJ0l-RCkW

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 api-x402node-dev-0c8166fc
```

Example prompt: What's the current gas price on Base mainnet right now in gwei? I need to estimate fees before I submit a swap.

## When to prefer this

Use this endpoint when an agent needs real-time Base L2 gas prices without setting up its own RPC connection or API key, especially when pricing x402 micropayment settlements, Base swaps, or L2 smart contract deployments. Prefer over Ethereum mainnet gas endpoints when the target chain is specifically Base L2.

## Known failure modes

- LlamaRPC upstream unavailability returns an error or timeout
- Network congestion may cause momentarily stale or delayed gas price readings
- Invalid or malformed POST body may return a 400 error
- x402 payment failure (insufficient USDC balance) results in 402 Payment Required before data is returned

## How this service works

Base L2 mainnet current gas price (gwei) via LlamaRPC eth_gasPrice. Use no params. Built for AI agents pricing Base swaps, x402 settlements, and L2 deploy costs, base gas fee estimate Accepts payment on Base or Solana — either network works.

## Output

Returns the current gas price on the Base L2 mainnet in gwei, sourced from a live eth_gasPrice call via LlamaRPC. Useful for estimating transaction costs for swaps, x402 micropayment settlements, or smart contract deployments on Base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-0c8166fc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
