# BaseBuilder DeFi Gas Price API (Base Network)

> BaseBuilder DeFi Gas Price API (Base Network) is a paid API for AI agents from bb-defi.vercel.app, paid per call via x402, $0.171178/call, status unknown (last checked 2026-09-15).

Returns current gas price data for the Base network to support DeFi transaction planning

## Facts

- Endpoint: POST https://bb-defi.vercel.app/api/gas/base
- Price: $0.171178/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basebuilder-defi-gas-price-api-base-network-df9bc065
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b8nA5gDQYQ56dsJXX16VL

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 basebuilder-defi-gas-price-api-base-network-df9bc065 -d '<json body>'
```

Example prompt: What's the current gas price on the Base network right now? I need to know if it's a good time to send a DeFi transaction.

## When to prefer this

Use this endpoint when you need real-time gas price data specifically for the Base (Coinbase L2) network and are operating within a DeFi context. Prefer this over generic gas APIs when already integrated with the BaseBuilder DeFi hub and paying per-call via x402 micropayments.

## Known failure modes

- Base network RPC unavailable — upstream provider error
- Invalid request body — 400 or 422 response
- Payment not processed — 402 response if x402 payment header missing or insufficient
- Rate limiting or quota exceeded — 429 response
- Service downtime on Vercel deployment — 503

## How this service works

BaseBuilder Defi API hub - 22 paid endpoints

## Output

Returns current gas price metrics for the Base network, likely including base fee, priority fee (tip), and total gas price in gwei, helping agents determine transaction costs before submitting on-chain.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basebuilder-defi-gas-price-api-base-network-df9bc065/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bb-defi.vercel.app](https://www.zero.xyz/host/bb-defi.vercel.app/llms.txt)
