# AgentFund Multi-Chain Gas Price

> AgentFund Multi-Chain Gas Price is a paid API for AI agents from x402.agentfund.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns current gas prices across multiple blockchain networks in a single call

## Facts

- Endpoint: POST https://x402.agentfund.net/x402/onchain_gas
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfund-multi-chain-gas-price-55831448
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1hv_e1s18E-Z0CiNKo7dp

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 agentfund-multi-chain-gas-price-55831448 -d '<json body>'
```

Example prompt: What are the current gas prices on Ethereum, Arbitrum, Base, and Polygon right now? I want to decide which chain is cheapest before sending my transaction.

## When to prefer this

Choose this endpoint when you need real-time gas price data across multiple EVM-compatible chains simultaneously in a single API call. It is particularly useful for DeFi automation agents, wallet applications, or transaction routers that need to compare fees before deciding which network to use. Prefer this over chain-specific RPC calls when you need a unified multi-chain view without managing multiple provider connections.

## Known failure modes

- Invalid chain name in the chains array returns an error or omits that chain
- Network connectivity issues to on-chain RPC providers may return stale or missing data
- Empty chains array may return all chains or an error depending on implementation
- Rate limiting if called excessively without proper x402 payment headers

## How this service works

Multi-chain Gas Price

## Output

Returns current gas price data for the requested blockchain networks (or all five supported chains by default), including fee estimates that can be used to compare transaction costs across chains before executing on-chain operations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chains": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Chains to check; defaults to all five."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chains": [
   {
    "chain": "base",
    "chainId": 8453,
    "gasPriceGwei": 0.006
   },
   {
    "chain": "ethereum",
    "chainId": 1,
    "gasPriceGwei": 0.0986
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfund-multi-chain-gas-price-55831448/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentfund.net](https://www.zero.xyz/host/x402.agentfund.net/llms.txt)
