RuntimeCall

Variant 249 v411

node_subtensor_runtime::RuntimeCall

About This Type

Top-level enum of all callable functions across all pallets.

The master call enum used in extrinsics. Each variant corresponds to a pallet, and each pallet variant contains its own call enum. This is what gets SCALE-encoded in transactions.

Encoding: Nested variant: first byte is pallet index, second byte is call index within that pallet.

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
249
Kind
Variant
Path
node_subtensor_runtime::RuntimeCall
Runtime
v411