# Base Gas Estimator (agentshelf.syntexa.ch)

> Base Gas Estimator (agentshelf.syntexa.ch) is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-23).

Estimates gas usage, current gas price, and transaction cost in ETH and USD for a given Base mainnet transaction.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base-estimate-gas?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-estimator-agentshelf-syntexa-ch-3ab56e78
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__0kEZt4Qu5Gbh2bcwZiHq

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 base-gas-estimator-agentshelf-syntexa-ch-3ab56e78 -d '<json body>'
```

Example prompt: Before I send a transaction to 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base mainnet, can you estimate how much gas it will use and what that costs in ETH and USD right now?

## When to prefer this

Use this endpoint when you need a quick, paid, reliable gas estimate for a Base mainnet transaction before submission, including both native ETH cost and a USD equivalent. Prefer this over calling eth_estimateGas directly when you lack a raw RPC connection to Base or need the USD conversion bundled in. Use the free sandbox endpoint /v1/sandbox/base-estimate-gas first to validate inputs without spending.

## Known failure modes

- Missing both 'to' and 'data' fields — at least one must be provided
- Invalid Ethereum address format (not EIP-55 or single-case hex)
- Calldata exceeds 2048 characters
- Transaction would revert on-chain, causing gas estimation to fail
- Network unavailability or Base RPC timeout
- Payment not included or underpaid — returns 402 with sandbox hint

## How this service works

Call when an agent needs eth_estimateGas, the current gas price, and the estimated cost in ETH and USD for a Base transaction. Send to and optional from, data, and value. Read-only. No spend. Send JSON {"to":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}. Exact $0.003 USDC on Base. Try unpaid POST /v1/sandbox/base-estimate-gas first.

## Output

Returns the eth_estimateGas value (gas units), the current network gas price, and the total estimated transaction cost expressed in both ETH and USD, computed from the supplied recipient, calldata, sender, and value inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "examples": [
    "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
   ],
   "description": "Optional recipient or contract on Base mainnet. Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. Required when data is omitted."
  },
  "data": {
   "type": "string",
   "maxLength": 2048,
   "description": "Optional calldata, even-length 0x hex, at most 2048 characters. Example: 0x. Required when to is omitted."
  },
  "from": {
   "type": "string",
   "description": "Optional sender on Base mainnet. Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. EIP-55 or all one case. Read-only."
  },
  "value": {
   "type": "string",
   "description": "Optional value in wei, as a decimal integer or 0x hex quantity. Example: 0. Omit it for zero."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-estimator-agentshelf-syntexa-ch-3ab56e78/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
