# BaseLens Gas Price Lookup

> BaseLens Gas Price Lookup is a paid API for AI agents from baselens-api.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Returns current Base network gas metrics including base fee, max fee per gas, and estimated simple transfer cost

## Facts

- Endpoint: GET https://baselens-api.vercel.app/v1/gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baselens-gas-price-lookup-043d88f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H7FV6uNwijGH5ZZhjNEc2

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 baselens-gas-price-lookup-043d88f2
```

Example prompt: What are the current gas fees on Base right now — give me the base fee, max fee per gas, and how much a simple ETH transfer would cost?

## When to prefer this

Choose this endpoint when you need real-time gas fee data specifically for the Base L2 network without requiring an API key — ideal for AI agents operating autonomously via x402 micropayment protocol at $0.001 per call. Prefer over Ethereum mainnet gas APIs when the target chain is Base.

## Known failure modes

- RPC node unavailability may return 5xx or stale data
- Network congestion spikes may cause delayed responses
- x402 payment failure if USDC balance is insufficient
- Invalid or missing payment header returns 402 Payment Required

## How this service works

Current Base gas: base fee, gas price, suggested EIP-1559 max fee and priority fee (gwei), block fullness, and cost of a plain ETH transfer.

## Output

A JSON object containing the current Base network block number, base fee in Gwei, max fee per gas in Gwei, and the estimated ETH cost of a simple transfer. Example: {block: 37000000, baseFeeGwei: '0.005', maxFeePerGasGwei: '0.011', simpleTransferCostEth: '0.0000001'}.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 37000000,
  "baseFeeGwei": "0.005",
  "maxFeePerGasGwei": "0.011",
  "simpleTransferCostEth": "0.0000001"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/baselens-gas-price-lookup-043d88f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baselens-api.vercel.app](https://www.zero.xyz/host/baselens-api.vercel.app/llms.txt)
