FixedI128

Composite 325 v393

substrate_fixed::FixedI128

About This Type

Structured type: FixedI128.

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)

#NameType
0bitsi128

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: i128
0x<field0>
field 0 bits: i128

Code Examples

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

const registry = new TypeRegistry();

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

Type Parameters

Frac = UInt

Referenced By (11)

Type Information

Type ID
325
Kind
Composite
Path
substrate_fixed::FixedI128
Runtime
v393