Example inputPOST /api/v1/x402/tx-value-eth
{
"wei": "1000000000000000"
}
Portable intent card · chain-primitives-local
Convert a transaction value wei field into ether for display. Call when summarizing transfers from raw tx objects without RPC. Returns eth amount from wei value 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.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/tx-value-eth -m POST -H 'x-delx-source: intent-card-tx-value-eth-api' --max-amount 0.001 -b '{"wei":"1000000000000000"}'
{
"wei": "1000000000000000"
}
{
"intent": "Tx Value Wei → ETH for an agent workflow",
"tool_name": "util_tx_value_eth",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/tx-value-eth-api.json"
}
Portable and inspectable