{"uid":"cap_MKz5MwmeDqARqN8AjU28Q","slug":"evm-unit-converter-wei-gwei-ether-token-decimals-8a21ed5e","name":"EVM Unit Converter (wei/gwei/ether/token decimals)","description":"Convert between EVM units (wei, gwei, ether) or arbitrary token decimals. Pass value, from and to as unit names or decimal counts. For gas math, token amount formatting and price math. wei gwei ether, unit conversion, token decimals, format units, parse units Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/crypto/units","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["value"],"properties":{"to":{"type":"string","description":"target unit name or decimals (default wei)"},"from":{"type":"string","description":"source unit name or decimals (default ether)"},"value":{"type":"string","description":"numeric value as a string (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1G9NezgZT5un6z6IWujvL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between Ethereum unit denominations (wei, gwei, ether) or arbitrary token decimal scales given a value and source/target unit","exampleAgentPrompt":"Convert 1500000000 wei to gwei and also tell me what that is in ether — I'm trying to format gas costs for display.","exampleUseCases":null,"resultDescription":"Returns the numeric value converted to the target unit, supporting standard EVM denominations (wei, gwei, ether) as unit names or arbitrary decimal counts for custom tokens.","failureModes":["Missing required parameters (value, from, or to) returns an error","Invalid unit name (not wei/gwei/ether and not a valid decimal integer) returns a validation error","Non-numeric value input returns a parse error","Extremely large or precision-lossy numbers may return inaccurate results depending on server-side arithmetic"],"whenToPreferThis":"Use this endpoint when you need quick, stateless EVM denomination math — especially for formatting raw on-chain values (wei) into human-readable ether/gwei, or for parsing user-entered ether amounts into wei before sending transactions. Also suitable for custom ERC-20 token decimal conversions (e.g. USDC with 6 decimals, WBTC with 8).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:02:31.255Z","isFirstParty":false}