Type uint32
Caution
If a value passed to .encode()
is outside the uint32
range, an error will be thrown.
Information
- Used to represent integers from 0 to 4,294,967,295.
- Uses 4 bytes for storage.
- Use a
number
for encoding.
Example Usage
import { Serializer, t } from "encodexx"
const serializer = new Serializer({ height: t.uint32,})
serializer.encode({ height: 884_900,})