FixedU128
Composite 327 v393substrate_fixed::FixedU128
About This Type
Structured type: FixedU128.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (1)
| # | Name | Type |
|---|---|---|
| 0 | bits | u128 |
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 = bits: u128
0x<field0>field 0 bits: u128Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode FixedU128
const value = registry.createType("FixedU128", {
bits: 1_000_000_000n
});
console.log("Hex:", value.toHex());Type Parameters
Frac = UInt
Referenced By (1)
Type Information
- Type ID
- 327
- Kind
- Composite
- Path
- substrate_fixed::FixedU128
- Runtime
- v393