# BlockRun.AI Gas Price

> BlockRun.AI Gas Price is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.0075/call, status unknown (last checked 2026-09-16).

Returns the current gas price for a specified blockchain network.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/surf/onchain/gas-price
- Price: $0.0075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-9d0e1ea5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eGkWNZfE5sPyKmbIxMvSU

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 blockrun-ai-9d0e1ea5
```

Example prompt: What's the current gas price on Ethereum right now?

## When to prefer this

Use this endpoint when you need real-time gas price data for a specific blockchain network to estimate transaction costs, optimize timing of on-chain transactions, or surface fee information to users in a DeFi or Web3 application.

## Known failure modes

- Unsupported or unrecognized chain value returns an error
- Missing required 'chain' query parameter returns a 400 bad request
- Network or upstream data provider outage returns 5xx
- Payment not completed or invalid x402 payment header returns 402

## How this service works

Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.

## Output

Returns the current gas price for the specified blockchain chain, likely including values such as base fee, priority fee, or gas price in gwei or native units.

## Example request

```json
{
 "chain": "ethereum"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Required query param"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-9d0e1ea5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
