{"uid":"cap_8pXnPEm1ou0jRrSMPKD3e","slug":"swift-bot-labs-evm-unit-converter-b8b16a58","name":"Swift Bot Labs EVM Unit Converter","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/evm/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"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["value"],"properties":{"to":{"type":"string"},"from":{"type":"string","description":"wei, gwei, ether, or a number of decimals"},"value":{"type":"string"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"evm-units","result":{"to":"gwei","wei":"1500000000000000000","from":"ether","value":"1.5","result":"1500000000"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VxlYwDX_xYk9WmkKlqmxu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts EVM token amounts between wei, gwei, ether, and arbitrary decimal units","exampleAgentPrompt":"Convert 1.5 ether to gwei — I need the exact wei and gwei values so I can use them in a smart contract call.","exampleUseCases":[{"title":"Gas price unit conversion","prompt":"I need to convert 25 gwei to wei so I can set the exact gas price in my transaction — can you do that conversion?"},{"title":"Token balance display formatting","prompt":"Convert 1500000000000000000 wei to ether so I can show the human-readable balance to my users."},{"title":"DeFi amount normalization","prompt":"I have a token with 6 decimals and the raw amount is 5000000 — convert that using 6 as the from unit to ether so I know the actual token value."}],"resultDescription":"A JSON object with fields: ok (boolean), tool name, and a result object containing the original value, from unit, to unit, and the converted result as a string.","failureModes":["Missing required 'value' query parameter returns an error","Invalid unit type for 'from' or 'to' (not wei/gwei/ether/integer decimals) returns a validation error","Non-numeric value string causes a parsing error","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Use this endpoint when you need a lightweight, deterministic EVM unit conversion (wei ↔ gwei ↔ ether or custom decimal places) without setting up an account or API key — ideal for AI agents that pay per call with USDC via x402 and need quick on-the-fly blockchain amount normalization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:26.706Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-evm-unit-converter-b8b16a58"}