# LogicNodes Gas Estimate

> LogicNodes Gas Estimate is a paid API for AI agents from logicnodes.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Returns current gas price estimates for a specified EVM or Aptos chain at one or more confidence levels

## Facts

- Endpoint: POST https://logicnodes.io/paid/v1/tools/gas_estimate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/logicnodes-gas-estimate-c4f85e3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X0WMYP4PvBYfVfrCJLf4K

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 logicnodes-gas-estimate-c4f85e3f -d '<json body>'
```

Example prompt: What's the current gas estimate on Base (eip155:8453) at the 50th and 95th confidence levels?

## When to prefer this

Use this endpoint when an AI agent needs exact, real-time gas price data for EVM-compatible chains or Aptos before constructing or submitting a transaction. It is especially valuable when confidence-level breakdowns are needed to tune transaction fees for speed vs. cost trade-offs. Prefer it over generic RPC calls or web scraping when you need a structured, reliable, AI-agent-friendly response with multi-chain support in a single API call. The pay-per-call USDC model (x402) makes it suitable for agents that need to avoid subscription overhead.

## Known failure modes

- Chain ID provided as a name (e.g. 'base') rather than CAIP-2 or numeric format — API refuses and returns an error
- Unsupported chain ID — only 14 supported chains are available
- Confidence level out of range (must be 1–99 integer) — validation error returned
- More than 12 confidence levels requested — exceeds maxItems limit
- Payment not attached or insufficient USDC — 402 payment required response
- Malformed request body — 400 bad request

## How this service works

Exact answers for AI agents: 40+ tools for EVM chains and Aptos, gas on 14 chains, never a guess. Free tier; pay per call in USDC (x402) on 13 networks.

## Output

A JSON object with ok:true, the tool name, and gas price data for the requested chain broken down by the requested confidence level percentiles. For EVM chains, this includes per-percentile gas prices (e.g. base fee, priority fee) reflecting real-time network conditions. The response is structured and machine-readable, suitable for direct use in transaction construction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": [
    "string",
    "number"
   ],
   "description": "CAIP-2 chain id such as eip155:8453 (Base) or aptos:1; a bare EVM chain id number also works. Chain names like \"base\" are refused."
  },
  "confidenceLevels": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 99,
    "minimum": 1
   },
   "maxItems": 12,
   "minItems": 1,
   "description": "EVM only"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "gas_estimate"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/logicnodes-gas-estimate-c4f85e3f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from logicnodes.io](https://www.zero.xyz/host/logicnodes.io/llms.txt)
