Example inputPOST /api/v1/x402/eth-to-wei
{
"eth": 0.05
}
Portable intent card · chain-primitives-local
Scale ether amounts into wei integer strings for transfers and tx value. Call when preparing value fields, allowances, or transfers denominated in ETH. Returns wei integer string and eth input 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/eth-to-wei -m POST -H 'x-delx-source: intent-card-eth-to-wei-api' --max-amount 0.001 -b '{"eth":0.05}'
{
"eth": 0.05
}
{
"intent": "Ether to Wei Converter for an agent workflow",
"tool_name": "util_eth_to_wei",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/eth-to-wei-api.json"
}
Portable and inspectable