RuntimeDispatchInfo
Composite 592 v393pallet_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)
| # | Name | Type |
|---|---|---|
| 0 | weight | Weight |
| 1 | class | DispatchClass |
| 2 | partial_fee | u64 |
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: Weightfield 1 class: DispatchClassfield 2 partial_fee: u64Code 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