# 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-25).

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/api/v1/eth-gas-cost-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eth-gas-cost-calculator-d2ddb13c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_THNE6EZfh5r5szJgH6UjT

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-d2ddb13c -d '<json body>'
```

Example prompt: Calculate how much a transaction costing 21000 gas units would cost in dollars if the gas price is 35 gwei and ETH is currently trading at $3200.

## When to prefer this

Use this endpoint when you need a quick, programmatic USD cost estimate for an Ethereum transaction and already know the gas units required, current gwei price, and ETH/USD rate. It is best suited for lightweight fee-transparency checks in DeFi workflows, NFT minting UIs, or agent-driven transaction cost guards. Prefer this over on-chain RPC calls when you want a simple arithmetic computation without needing real-time gas oracle data.

## Known failure modes

- Missing required fields (gas_units, gwei_price, or eth_price_usd) result in an error response
- Non-integer gas_units value may cause a validation error
- Negative or zero values for price inputs may return unexpected results
- Payment failure (insufficient USDC) blocks the request with a 402 response
- Response schema is minimal — detailed error messages may not be provided

## 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 with a result field containing the computed gas cost and a status field indicating success. The computed cost represents the total USD cost of the transaction based on the provided gas units, gwei price, and ETH/USD exchange rate.

## 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-d2ddb13c/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)
