{"slug":"flat-rate-llm-kikoribera03-workers-dev-v1-util-units-1baa25","title":"Use when an agent must turn an on-chain integer into a human amount, or back, wi","host":"flat-rate-llm.kikoribera03.workers.dev","method":"POST","resource":"https://flat-rate-llm.kikoribera03.workers.dev/v1/util/units","category":"market","description":"Use when an agent must turn an on-chain integer into a human amount, or back, without losing money to rounding: converts between wei, gwei, ether and any token decimals with exact integer maths, no floating point. Being off by a factor of a thousand on decimals is the mistake that costs real funds. ","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":102,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amount":"1500000000000000000","from":"wei","to":"ether"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"amount":{"description":"The quantity, as a string to avoid float loss.","type":"string"},"from":{"description":"wei | gwei | ether, or a number of decimals.","type":"string"},"to":{"description":"wei | gwei | ether, or a number of decimals.","type":"string"}},"required":["amount","from","to"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":463,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":30,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":175,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":26,"error":null}],"description_full":"Use when an agent must turn an on-chain integer into a human amount, or back, without losing money to rounding: converts between wei, gwei, ether and any token decimals with exact integer maths, no floating point. Being off by a factor of a thousand on decimals is the mistake that costs real funds. Do not use to find a token's decimals (/v1/evm/token-info returns them). No API key, no account.","last_updated":"2026-11-23T22:20:12.891Z","schemes":["exact"]}