x402
utility

Estimate gas cost in USD given used gas, price, and ETH/USD. Call when operator reports that need approximate dollar gas spend. Returns usd cost estimate (caller supplies eth price) 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-usd

Request

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

Request body

gas_usedinteger required

Input field: gas used.

gas_price_weistring required

Input field: gas price wei.

eth_usdinteger required

Input field: eth usd.

Response

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

schemastring
gas_usedinteger
cost_ethnumber
eth_usdnumber
cost_usdnumber

Changes

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