@tevm/voltaire.
Schemas
Parse and validate Uint256 values using Effect Schema:| Schema | Input | Output |
|---|---|---|
Uint.BigInt | bigint | Uint256Type |
Uint.Number | number | Uint256Type |
Uint.Hex | hex string | Uint256Type |
Uint.String | decimal string | Uint256Type |
Uint.Bytes | Uint8Array | Uint256Type |
Constructors
Create Uint256 values with Effect-wrapped error handling:tryFrom
Returns an Option instead of throwing:Type Guards
Pure functions for type checking:Arithmetic
Wrapping Operations (pure)
These operations wrap on overflow/underflow and never fail:Fallible Operations (Effect-wrapped)
Division and modulo can fail on zero divisor:Comparison
All comparison functions are pure:Bitwise Operations
All bitwise operations are pure:Bit Utilities
Math Utilities
Converters
All converters are Effect-wrapped:Complete API Reference
Schemas (5)
BigInt, Bytes, Hex, Number, String
Constructors (7)
from, fromAbiEncoded, fromBigInt, fromBytes, fromHex, fromNumber, tryFrom
Type Guards (2)
isUint256, isValid
Bit Utilities (4)
bitLength, isPowerOf2, leadingZeros, popCount
Bitwise (6)
bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseXor, shiftLeft, shiftRight
Comparison (7)
equals, greaterThan, greaterThanOrEqual, isZero, lessThan, lessThanOrEqual, notEquals
Arithmetic (6)
dividedBy, minus, modulo, plus, times, toPower
Math (9)
clone, gcd, lcm, max, maximum, min, minimum, product, sum
Converters (6)
toAbiEncoded, toBigInt, toBytes, toHex, toNumber, toString
See Also
- Voltaire Uint — Core Uint documentation
- Effect Schema — Schema validation

