RuntimeCall

Variant 123 v393

node_subtensor_runtime::RuntimeCall

About This Type

Enum type: RuntimeCall.

A tagged union where the first byte selects which variant is active, followed by that variant's data.

Encoding: 1-byte variant index followed by the selected variant's field data.

Variants (23)

IndexNameFieldsDocs
0System
2Timestamp
4Grandpa
5Balances
7SubtensorModule
11Utility
12Sudo
13Multisig
14Preimage
15Scheduler
16Proxy
17Registry
18Commitments
19AdminUtils
20SafeMode
21Ethereum
22EVM
25BaseFee
26Drand
27Crowdloan
28Swap
29Contracts
30MevShield

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 23 possible variants.
Size
variable (1+ bytes)

Examples

System = System(Call)
0x00<field0>
00 Variant index 0 = System
field 0 field0: Call
Timestamp = Timestamp(Call)
0x02<field0>
02 Variant index 2 = Timestamp
field 0 field0: Call
Grandpa = Grandpa(Call)
0x04<field0>
04 Variant index 4 = Grandpa
field 0 field0: Call

Code Examples

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

const registry = new TypeRegistry();

// Encode RuntimeCall — variant "System"
const value = registry.createType("RuntimeCall", { System: { value: 0 } });
console.log("Hex:", value.toHex());

Referenced By (19)

Type Information

Type ID
123
Kind
Variant
Path
node_subtensor_runtime::RuntimeCall
Runtime
v393