# Base Network Gas Price Oracle

> Base Network Gas Price Oracle is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Returns the current Base network base fee, max priority fee, and gas price by querying the latest block

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base-gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-gas-price-oracle-5eee6d15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w-ZbPL7_XZ5cDEFITvCAN

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-network-gas-price-oracle-5eee6d15 -d '<json body>'
```

Example prompt: What are the current gas fees on the Base network right now — base fee, max priority fee, and gas price?

## When to prefer this

Use this endpoint when an AI agent needs real-time Base L2 gas fee data without running its own Ethereum node or managing RPC credentials. Ideal for agents executing or timing transactions on Base that need EIP-1559 fee parameters (base fee + priority fee) in a single paid call. Prefer the free /v1/sandbox/base-gas endpoint for testing before paying $0.001 USDC per production call.

## Known failure modes

- Non-'latest' block tags rejected — only 'latest' is accepted
- Network unavailability from Base RPC nodes may cause timeouts or 503 errors
- Payment not received or USDC balance insufficient results in 402 Payment Required
- Malformed JSON body returns 400 Bad Request

## How this service works

Call when an agent needs the latest Base base fee, max priority fee, and gas price. Send block latest, or omit it. Read-only eth_getBlockByNumber, eth_maxPriorityFeePerGas, and eth_gasPrice. No address. Send JSON {"block":"latest"}. Exact $0.001 USDC on Base. Try unpaid POST /v1/sandbox/base-gas first.

## Output

Returns the current Base network gas parameters from the latest block: the base fee per gas (from EIP-1559), the max priority fee per gas (miner tip), and the overall gas price, all in wei or gwei units.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "block": {
   "type": "string",
   "const": "latest",
   "examples": [
    "latest"
   ],
   "description": "Block tag. Only latest is accepted. Example: latest. Omit it for the same current base fee, priority fee, and gas price. No address and no URL."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-gas-price-oracle-5eee6d15/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
