x402
utility

Compute gas_used × gas_price as total gas cost in wei. Call when estimating tx cost from known used gas and price without a node. Returns gas cost wei string 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-wei

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/gas-cost-wei
  • 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

Changes

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