RuntimeCall
Variant 123 v393node_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)
| 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)
#158 Utility::Call via as_derivative.call#158 Utility::Call via dispatch_as.call#158 Utility::Call via with_weight.call#158 Utility::Call via if_else.main#158 Utility::Call via if_else.fallback#158 Utility::Call via dispatch_as_fallible.call#159 Vec<RuntimeCall> #163 Sudo::Call via sudo.call#163 Sudo::Call via sudo_unchecked_weight.call#163 Sudo::Call via sudo_as.call#164 Multisig::Call via as_multi_threshold_1.call#164 Multisig::Call via as_multi.call#167 Scheduler::Call via schedule.call#167 Scheduler::Call via schedule_named.call#167 Scheduler::Call via schedule_after.call#167 Scheduler::Call via schedule_named_after.call#169 Proxy::Call via proxy.call#169 Proxy::Call via proxy_announced.call#364 Option via Some
Type Information
- Type ID
- 123
- Kind
- Variant
- Path
- node_subtensor_runtime::RuntimeCall
- Runtime
- v393