# ETH Gas Cost Calculator

> ETH Gas Cost Calculator is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Calculates the USD cost of an Ethereum transaction given gas units, gas price in Gwei, and current ETH price

## Facts

- Endpoint: POST https://kihustle.tech/bot-bazaar/api/v1/eth-gas-cost-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eth-gas-cost-calculator-59aaf682
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap___XNN-5mW59oMSRePQmE5

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 eth-gas-cost-calculator-59aaf682 -d '<json body>'
```

Example prompt: How much would an Ethereum transaction cost in USD if it uses 21000 gas units at 35 Gwei and ETH is currently trading at $3200?

## When to prefer this

Use this endpoint when you need a quick, on-demand USD cost estimate for an Ethereum transaction and you already have or can fetch the three inputs: gas units, current Gwei price, and current ETH/USD price. Prefer this over doing the math manually when integrating into an automated agent workflow that needs to gate or budget transactions based on cost.

## Known failure modes

- Missing required fields (gas_units, gwei_price, eth_price_usd) may return an error or null result
- Non-integer gas_units value may cause a validation error
- Negative or zero ETH price may produce nonsensical output
- Payment failure (HTTP 402) if USDC payment is not correctly attached via x402 protocol
- Server-side errors (5xx) if the calculation service is unavailable

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object indicating the computed gas cost result along with a success status. The result likely includes the calculated USD cost of the Ethereum transaction derived from the provided gas units, Gwei price, and ETH/USD price.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "gas_units": {
   "type": "integer"
  },
  "gwei_price": {
   "type": "number"
  },
  "eth_price_usd": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eth-gas-cost-calculator-59aaf682/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
