RuntimeCall
Variant 249 v411node_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | System | ||
| 2 | Timestamp | ||
| 4 | Grandpa | ||
| 5 | Balances | ||
| 7 | SubtensorModule | ||
| 11 | Utility | ||
| 12 | Sudo | ||
| 13 | Multisig | ||
| 14 | Preimage | ||
| 15 | Scheduler | ||
| 16 | Proxy | ||
| 17 | Registry | ||
| 18 | Commitments | ||
| 19 | AdminUtils | ||
| 20 | SafeMode | ||
| 21 | Ethereum | ||
| 22 | EVM | ||
| 25 | BaseFee | ||
| 26 | Drand | ||
| 27 | Crowdloan | ||
| 28 | Swap | ||
| 29 | Contracts | ||
| 30 | MevShield |
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 = Systemfield 0 field0: CallTimestamp = Timestamp(Call)
0x02<field0>02 Variant index 2 = Timestampfield 0 field0: CallGrandpa = Grandpa(Call)
0x04<field0>04 Variant index 4 = Grandpafield 0 field0: CallCode 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)
#247 Utility::Call via as_derivative.call#247 Utility::Call via dispatch_as.call#247 Utility::Call via with_weight.call#247 Utility::Call via if_else.main#247 Utility::Call via if_else.fallback#247 Utility::Call via dispatch_as_fallible.call#248 Vec<RuntimeCall> #250 Sudo::Call via sudo.call#250 Sudo::Call via sudo_unchecked_weight.call#250 Sudo::Call via sudo_as.call#251 Multisig::Call via as_multi_threshold_1.call#251 Multisig::Call via as_multi.call#254 Scheduler::Call via schedule.call#254 Scheduler::Call via schedule_named.call#254 Scheduler::Call via schedule_after.call#254 Scheduler::Call via schedule_named_after.call#256 Proxy::Call via proxy.call#256 Proxy::Call via proxy_announced.call#433 Option via Some
Type Information
- Type ID
- 249
- Kind
- Variant
- Path
- node_subtensor_runtime::RuntimeCall
- Runtime
- v411