{"slug":"saylorinnovations-com-api-crypto-unit-convert-aa3c3a","title":"Convert crypto units exactly","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/crypto/unit-convert","category":"market","description":"Convert crypto units exactly: wei, gwei, ether, lamports, SOL, satoshis, BTC and any token decimals, using integer math with no floating-point rounding errors.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":317,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"amount":"1.5","from":"ether","to":"gwei"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"amount":{"description":"non-negative decimal string, for example 1.5","type":"string"},"from":{"description":"unit name (wei, gwei, ether, lamport, sol, satoshi, btc, usdc, ...) or decimals:N","type":"string"},"to":{"description":"unit name or decimals:N","type":"string"}},"required":["amount","from","to"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"amount":{"description":"Amount","type":"string"},"exact":{"type":"boolean"},"from":{"description":"Start of the range","type":"string"},"from_decimals":{"description":"From decimals","type":"number"},"note":{"description":"Caveat or context for reading the result","type":"string"},"result":{"description":"Result of the operation","type":"string"},"result_smallest_unit":{"description":"Result smallest unit","type":"string"},"source":{"description":"Data source the values come from","type":"string"},"to":{"description":"End of the range","type":"string"},"to_decimals":{"description":"To decimals","type":"number"}},"required":["amount","from","from_decimals","to","to_decimals","result","result_smallest_unit","exact","note","source"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":317,"error":null}],"description_full":"Convert crypto units exactly: wei, gwei, ether, lamports, SOL, satoshis, BTC and any token decimals, using integer math with no floating-point rounding errors.","last_updated":"2026-10-21T02:57:30.703Z","schemes":["exact"]}