Permill

Composite 88 v393

sp_arithmetic::per_things::Permill

About This Type

Structured type: Permill.

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
0(unnamed)u32

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 = ?: u32
0x<field0>
field 0 field0: u32

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (3)

Type Information

Type ID
88
Kind
Composite
Path
sp_arithmetic::per_things::Permill
Runtime
v393