getU256Decoder
Returns a decoder for 256-bit unsigned integers (u256).
This decoder deserializes u256 values from thirty-two bytes in little-endian format by default.
You may specify big-endian storage using the endian option.
For more details, see getU256Codec.
Parameters
| Parameter | Type | Description |
|---|---|---|
config | NumberCodecConfig | Optional settings for endianness. |
Returns
FixedSizeDecoder<bigint, 32>
A FixedSizeDecoder<bigint, 32> for decoding u256 values.
Example
Decoding a u256 value.