{"uid":"cap_8mIZ6FalA0r6HJN-2H9-n","slug":"crypto-units-converter-69e57ff6","name":"Crypto Units Converter","description":"50 pay-per-call tools for agents over x402 (USDC on Base, Polygon, Solana): crypto market data, token audits, indicators, swap routing, web extraction, DNS/WHOIS/email checks, FX, weather and AI text/image tools.","url":"https://skinwinking.com/api/v1/util/crypto-units?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":["value","from","to"],"properties":{"to":{"type":"string","description":"wei, gwei, ether, lamports, sol, or units"},"from":{"type":"string","description":"wei, gwei, ether, lamports, sol, or units (base units)"},"value":{"type":"string","description":"Amount to convert"},"decimals":{"type":"integer","description":"Token decimals when from/to is units vs token (default 18)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"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_PALcPxIS7Vi5EDufNQu_h","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 amounts between units such as wei, gwei, ether, lamports, sol, and generic token base units","exampleAgentPrompt":"Convert 1500000000000000000 wei to ether for me.","exampleUseCases":[{"title":"Display human-readable ETH balance","prompt":"I have a raw balance of 2500000000000000000 wei from an Ethereum RPC call — can you convert that to ether so I can show it to the user?"},{"title":"Prepare Solana lamport amount for transaction","prompt":"I need to send 2.5 SOL to a wallet — what's that in lamports so I can set the transaction amount correctly?"},{"title":"Convert ERC-20 token units with custom decimals","prompt":"I have 5000000 raw units of a token with 6 decimals — convert that from units to a human-readable token amount for me."}],"resultDescription":"A JSON object containing a 'result' field with the converted amount as a string (e.g. {\"result\":\"1500000000000000000\"}), preserving full precision without floating-point loss.","failureModes":["Missing required query parameters (value, from, to) returns an error","Invalid unit name for 'from' or 'to' (not one of wei, gwei, ether, lamports, sol, units) returns an error","Non-numeric value string causes a parsing error","Mismatched unit domains (e.g. mixing Ethereum and Solana units without context) may return unexpected results","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Use this endpoint when an AI agent needs to convert between low-level blockchain units (wei, gwei, lamports) and human-readable amounts (ether, SOL) or ERC-20 token base units with custom decimals, especially in a pay-per-call context where no local library is available. Prefer this over client-side libraries when operating in environments without access to ethers.js, web3.py, or @solana/web3.js.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:50:56.291Z","isFirstParty":false,"canonicalSlug":"crypto-units-converter-69e57ff6"}