# BaseBuilder DeFi Gas Price Predictor

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

Predicts gas prices for Ethereum/EVM transactions using machine learning or heuristic models

## Facts

- Endpoint: POST https://bbx-defi.vercel.app/api/gas/predict?utm_source=zero.xyz
- Price: $0.10757/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basebuilder-defi-gas-price-predictor-eb293346
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eh9R-ry5onN2rsY-MRENc

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-eb293346 -d '<json body>'
```

Example prompt: Before I submit this Uniswap swap on Ethereum mainnet, can you predict the current gas price so I know if it's a good time to transact or if I should wait for fees to drop?

## When to prefer this

Use this endpoint when you need a forward-looking gas price prediction (not just the current mempool snapshot) before submitting a DeFi transaction on an EVM chain, especially when cost optimization or transaction timing matters. Prefer this over raw RPC eth_gasPrice calls when you want ML-assisted forecasting rather than an instantaneous reading.

## Known failure modes

- Network or RPC unavailability causing stale or missing gas data
- Invalid or unsupported network identifier returns 400 error
- Payment not included or insufficient USDC causes 402 payment required
- Model prediction timeout on high-load periods returning 503
- Malformed request body returns 422 validation error

## How this service works

BaseBuilder Defi API hub - 22 paid endpoints

## Output

Returns a predicted gas price (likely in gwei) for EVM transactions, potentially including fast/standard/slow tier estimates, a confidence score, and a recommendation on whether current gas conditions are favorable for submitting a transaction.

## More

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