x402
utility

Compute total gas cost in ether from used gas and price wei. Call when budgeting ETH spend for a planned or observed transaction. Returns gas cost in eth as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

post/api/v1/x402/gas-cost-eth

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/gas-cost-eth
  • Auth: none declared

Request body

gas_usedinteger required

Input field: gas used.

gas_price_weistring required

Input field: gas price wei.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
gas_usedinteger
gas_price_weistring
cost_weistring
cost_ethnumber

Changes

No recorded changes to this operation across all 1 revision of this API.