{"uid":"cap_ZNCkzU27Gy9Q9eFGkuuGV","slug":"agent402-uk-ethereum-unit-converter-wei-gwei-ether-d74f7ef2","name":"Agent402 UK – Ethereum Unit Converter (wei ↔ gwei ↔ ether)","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/utils/eth-units","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","description":"wei|gwei|ether"},"from":{"type":"string","description":"wei|gwei|ether"},"amount":{"type":"string","description":"Amount"}}},"responseSchema":{"type":"json","example":{"valid":true,"result":"1500000000000000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E6y4Ne3wznUqwIyr121s2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts Ethereum denominations (wei, gwei, ether) between each other as precise decimal strings, avoiding floating-point drift.","exampleAgentPrompt":"Convert 1.5 ether to wei as an exact decimal string — no floating-point approximation — using the Agent402 ETH unit converter.","exampleUseCases":[{"title":"Gas price conversion for EVM transaction","prompt":"I need to convert 25 gwei to wei as an exact string so I can pass it to the smart contract call — no floating point."},{"title":"Display ether amount from raw wei balance","prompt":"Take this raw balance of 3500000000000000000 wei and convert it to ether so I can show the user a human-readable number."},{"title":"DeFi agent slippage calculation","prompt":"Convert 0.05 ether to gwei as a precise decimal string — I'm using it mid-task to calculate slippage for a Uniswap trade."}],"resultDescription":"Returns a JSON object with a boolean 'valid' field indicating whether the conversion succeeded, and a 'result' field containing the converted amount as a precise decimal string (e.g. {\"valid\": true, \"result\": \"1500000000000000000\"}).","failureModes":["Invalid unit name in 'from' or 'to' (not one of wei/gwei/ether) — likely returns valid:false or error","Amount string is not a valid number — may return valid:false","Missing required fields — likely HTTP 400 or valid:false response","Payment not included or insufficient — HTTP 402 response"],"whenToPreferThis":"Choose this endpoint when an EVM agent needs exact, float-safe denomination conversions between wei, gwei, and ether mid-task. Prefer it over JavaScript or Python native arithmetic when floating-point drift would corrupt downstream contract calls or financial calculations. Especially useful in automated pipelines where string-based precision is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:38.786Z","isFirstParty":false}