RuntimeDispatchInfo

Composite 592 v393

pallet_transaction_payment::types::RuntimeDispatchInfo

About This Type

Structured type: RuntimeDispatchInfo.

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 (3)

#NameType
0weightWeight
1classDispatchClass
2partial_feeu64

SCALE Encoding

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

Examples

Struct with 3 fields = weight: Weight, class: DispatchClass, partial_fee: u64
0x<field0><field1><field2>
field 0 weight: Weight
field 1 class: DispatchClass
field 2 partial_fee: u64

Code Examples

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

const registry = new TypeRegistry();

// Encode RuntimeDispatchInfo
const value = registry.createType("RuntimeDispatchInfo", {
  weight: 0,
  class: 0,
  partial_fee: 1_000_000_000n
});
console.log("Hex:", value.toHex());

Type Parameters

Balance = u64
Weight = Weight

Type Information

Type ID
592
Kind
Composite
Path
pallet_transaction_payment::types::RuntimeDispatchInfo
Runtime
v393