# BaseBuilder DeFi Gas Price Predictor

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

Predicts Ethereum/Base network gas prices to help users time transactions for optimal cost

## Facts

- Endpoint: POST https://bb-defi.vercel.app/api/gas/predict
- Price: $0.10757/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-predictor-9e77c0d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H1P_CmstjvuUSQnAcHAmV

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-predictor-9e77c0d7 -d '<json body>'
```

Example prompt: What's the predicted gas price on the Base network right now? I want to know if I should submit my DeFi swap transaction now or wait for fees to drop.

## When to prefer this

Use this endpoint when an AI agent needs to advise a user on optimal transaction timing on the Base network or Ethereum, especially before executing DeFi swaps, NFT mints, or smart contract interactions where gas cost matters. Prefer this over static gas oracles when you need forward-looking prediction rather than a current snapshot.

## Known failure modes

- Network data unavailable — returns 503 if upstream chain data cannot be fetched
- Invalid chain/network identifier — returns 400 with validation error
- Insufficient payment — returns 402 if x402 payment header is missing or underpaid
- Rate limit exceeded — returns 429 if too many requests
- Prediction model timeout — returns 504 if gas oracle takes too long

## How this service works

BaseBuilder Defi API hub - 22 paid endpoints

## Output

Returns a predicted gas price (in gwei or wei) for the Base/Ethereum network, likely including fast/standard/slow tiers, a confidence score or recommendation, and possibly a suggested wait time for lower fees.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basebuilder-defi-gas-price-predictor-9e77c0d7/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)
