x402
utility

Convert between wei and ether using fixed 1e18 scaling without RPC — call when converting wei↔ether with fixed 1e18 scaling. Use for chain input hygiene without live RPC—adjacent to OneSource-class small chain reads, but static/local only so rights and margin stay clear. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.

post/api/v1/x402/wei-ether-convert

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/wei-ether-convert
  • Auth: none declared

Request body

amountnumber required

Numeric amount to convert (wei count or ether units depending on direction).

directionstring

wei_to_ether or ether_to_wei.

Response

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

schemastring
directionstring
amountnumber
weistring
ethernumber

Changes

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