# Axiom Works Gas Estimator (eth_estimateGas)

> Axiom Works Gas Estimator (eth_estimateGas) is a paid API for AI agents from api.axiomworks.co.uk, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-12).

Estimates the gas cost for an EVM transaction before signing, returning estimated fee in native coin and the revert reason if the transaction would fail.

## Facts

- Endpoint: GET https://api.axiomworks.co.uk/chain/estimate-gas?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/axiom-works-gas-estimator-eth-estimategas-437b7d6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1GhtdDstwW-jZ9N7uWO_8

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 axiom-works-gas-estimator-eth-estimategas-437b7d6a
```

Example prompt: Before I sign this token transfer, can you estimate the gas and total fee for sending from 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 to 0x83352B327c8ef5B85fa1b89f4D2BEA940A592913 with calldata 0xa9059cbb… on Base, and let me know if it would revert?

## When to prefer this

Use this endpoint when you need a quick, inexpensive ($0.002) pre-flight gas estimate for EVM transactions on Base, Ethereum, Arbitrum, Optimism, or Polygon — especially when you also want automatic revert detection with reason strings. Prefer it over raw RPC calls when you need a simple REST API without managing node connections, and when detecting transaction failures before signing is a priority.

## Known failure modes

- Rate limit from public RPC node returns would_revert: true with an error message pointing to Allnodes
- Invalid or malformed 'to' address returns a validation error
- Transaction that would genuinely revert on-chain returns would_revert: true with revert reason
- Unsupported chain value returns schema validation error
- Missing required 'to' parameter returns 400-level error

## How this service works

Estimate gas for a transaction before signing (eth_estimateGas) plus current fee → cost in native coin; returns the revert reason if it would fail. Example: {from:"0xd8dA…6045", to:"0x8335…2913", data:"0xa9059cbb…", chain:"base"}. $0.002.

## Output

A JSON object containing the estimated gas units, estimated fee expressed as a string in native coin, a boolean would_revert flag indicating if the transaction would fail, and if so the revert reason. Also includes the chain name and chain ID. On rate-limit or RPC error, returns an error message and would_revert: true.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Recipient/contract"
      },
      "data": {
       "type": "string"
      },
      "from": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Sender"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "EVM chain (default base)"
      },
      "value": {
       "type": "string",
       "description": "Wei (decimal)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "gas": {
       "type": "number"
      },
      "est_fee": {
       "type": "string"
      },
      "would_revert": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "error": "Rate limit exceeded. To obtain higher limits, please request a personal token or a dedicated node: https://www.allnodes.com/publicnode",
  "source": "eth_estimateGas",
  "chain_id": 8453,
  "would_revert": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/axiom-works-gas-estimator-eth-estimategas-437b7d6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.axiomworks.co.uk](https://www.zero.xyz/host/api.axiomworks.co.uk/llms.txt)
