{"uid":"cap_0ONBBet5D6hwcS67wWJ82","slug":"crypto-unit-converter-eth-wei-bd991d27","name":"Crypto Unit Converter (ETH ↔ Wei)","description":"Need to convert ETH, gwei or wei without floating-point errors? Converts an amount between these units with exact decimal math, up to 28 significant digits ($0.001 per call).","url":"https://api.api-agent-ia.ch/convertir-unites?utm_source=zero.xyz","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["valeur","unite_source","unite_cible"],"properties":{"valeur":{"type":"string"},"unite_cible":{"type":"string"},"unite_source":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"unite_cible":"gwei","unite_source":"eth","valeur_entree":"1.5","valeur_sortie":"1500000000.0"}},"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_yQC_fkZZUFxq7Fj8NHLW_","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 cryptocurrency values between units (e.g. ETH to wei, gwei to ETH) given a source unit, target unit, and numeric value","exampleAgentPrompt":"Convert 2.5 ETH to wei for me — what's the equivalent value in wei?","exampleUseCases":[{"title":"ETH to wei for smart contract call","prompt":"I need to pass a value in wei to a smart contract — convert 0.1 ETH to wei for me."},{"title":"Gas price unit conversion for display","prompt":"The gas price is 25 gwei, what is that in ETH so I can show it in a human-readable format?"},{"title":"Normalize user input for transaction","prompt":"A user entered 500000000000000000 wei — can you convert that to ETH so I can display it properly?"}],"resultDescription":"A JSON object containing the input value, the source unit, the target unit, and the converted output value as a string (e.g. {valeur_entree: '1', unite_source: 'eth', unite_cible: 'wei', valeur_sortie: '1000000000000000000'})","failureModes":["Missing required query parameters (valeur, unite_source, or unite_cible) returns an error","Unsupported unit names result in an error response","Non-numeric value in valeur field causes a parse error","Payment not included triggers a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need precise, server-side conversion between Ethereum denomination units (ETH, gwei, wei) without implementing the math locally. Particularly useful in agents handling smart contract interactions, gas calculations, or displaying blockchain values to users in a preferred denomination.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:41:33.821Z","isFirstParty":false,"canonicalSlug":"crypto-unit-converter-eth-wei-bd991d27"}