Hex converter
util_hexUse when an agent has raw RPC output and must read it as a number or as text: converts between hex, decimal and UTF-8 in one call, with big integers kept exact because a 32-byte word overflows a JavaScript number. Do not use to decode a whole ABI-encoded struct: this converts one value. No API key, no account. $0.005 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | hex | decimal | text. What the value IS. Defaults to autodetect. | |
| value | Yes | A 0x-prefixed hex string, a decimal number, or text. |