bigint values (Uint8, Uint16, Uint32, Uint64, Uint128, and Uint / Uint256). Every constructor validates range bounds on creation (0 to 2^N - 1), and arithmetic matches EVM modular semantics modulo .
Width Family
Quick Start
@tevm/voltaire or @tevm/voltaire/Uint.
Uint vs Uint256 Exports
Uintis a callable constructor (Uint(value)) with static methods (Uint.plus,Uint.toHex, etc.) and constants (MAX,MIN,ZERO,ONE,SIZE).Uint256is the full 256-bit namespace from@tevm/voltaire/Uint(Uint256.from,Uint256.plus, plus variadicsum,product,min,max,gcd,lcm,isPowerOf2,clone).- All arithmetic, bitwise, comparison, and conversion functions share the same
Uint256Typebrandedbigint.
API Summary (Uint / Uint256)
Wrapping & Division Semantics
plus,minus,times, andtoPowerwrap modulo to match EVM opcodes (ADD,SUB,MUL,EXP).dividedByandmodulothrow on division by zero.from*throwsIntegerUnderflowErroron negative values andIntegerOverflowErroron values> MAX;tryFromreturnsundefinedinstead of throwing.
Related
- Uint256 Reference — Detailed 256-bit EVM word reference
- Int256 — Signed 256-bit two’s complement integers
- Denomination — Branded
Wei,Gwei, andEtherunits

