Gas Fee Calculator
crypto_gas_fee_calculatorCalculate a transaction's gas fee: gas units × gas price (gwei) gives the ETH cost, multiplied by the ETH price for USD. Exact BigInt math for the wei amounts. Use this when an agent needs to transaction cost in ETH and USD from gas × gwei. x402 price $0.01/call (USDC, eip155:8453).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gasUnits | Yes | Gas units | |
| gweiPrice | Yes | Gas price (gwei) | |
| ethPriceUsd | Yes | ETH price (USD) |