U256

Composite 86 v393

primitive_types::U256

About This Type

256-bit unsigned integer for very large numeric values.

Used in EVM-compatible operations and for values that exceed u128 range.

Encoding: Fixed-width: 32 bytes, little-endian.

Fields (1)

#NameType
0(unnamed)[u64; 4]

SCALE Encoding

Rule
1 field encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 1 field = ?: [u64; 4]
0x<field0>
field 0 field0: [u64; 4]

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode U256
const value = registry.createType("U256", {
  field: 0
});
console.log("Hex:", value.toHex());

Referenced By (37)

and 17 more...

Type Information

Type ID
86
Kind
Composite
Path
primitive_types::U256
Runtime
v393