Metagraph
Composite 668 v393pallet_subtensor::rpc_info::metagraph::Metagraph
About This Type
Structured type: Metagraph.
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 (72)
| # | Name | Type |
|---|---|---|
| 0 | netuid | Compact<u16> |
| 1 | name | Vec<Compact<u8>> |
| 2 | symbol | Vec<Compact<u8>> |
| 3 | identity | Option |
| 4 | network_registered_at | Compact<u64> |
| 5 | owner_hotkey | AccountId |
| 6 | owner_coldkey | AccountId |
| 7 | block | Compact<u64> |
| 8 | tempo | Compact<u16> |
| 9 | last_step | Compact<u64> |
| 10 | blocks_since_last_step | Compact<u64> |
| 11 | subnet_emission | Compact<u64> |
| 12 | alpha_in | Compact<u64> |
| 13 | alpha_out | Compact<u64> |
| 14 | tao_in | Compact<u64> |
| 15 | alpha_out_emission | Compact<u64> |
| 16 | alpha_in_emission | Compact<u64> |
| 17 | tao_in_emission | Compact<u64> |
| 18 | pending_alpha_emission | Compact<u64> |
| 19 | pending_root_emission | Compact<u64> |
| 20 | subnet_volume | Compact<u128> |
| 21 | moving_price | FixedI128 |
| 22 | rho | Compact<u16> |
| 23 | kappa | Compact<u16> |
| 24 | min_allowed_weights | Compact<u16> |
| 25 | max_weights_limit | Compact<u16> |
| 26 | weights_version | Compact<u64> |
| 27 | weights_rate_limit | Compact<u64> |
| 28 | activity_cutoff | Compact<u16> |
| 29 | max_validators | Compact<u16> |
| 30 | num_uids | Compact<u16> |
| 31 | max_uids | Compact<u16> |
| 32 | burn | Compact<u64> |
| 33 | difficulty | Compact<u64> |
| 34 | registration_allowed | bool |
| 35 | pow_registration_allowed | bool |
| 36 | immunity_period | Compact<u16> |
| 37 | min_difficulty | Compact<u64> |
| 38 | max_difficulty | Compact<u64> |
| 39 | min_burn | Compact<u64> |
| 40 | max_burn | Compact<u64> |
| 41 | adjustment_alpha | Compact<u64> |
| 42 | adjustment_interval | Compact<u16> |
| 43 | target_regs_per_interval | Compact<u16> |
| 44 | max_regs_per_block | Compact<u16> |
| 45 | serving_rate_limit | Compact<u64> |
| 46 | commit_reveal_weights_enabled | bool |
| 47 | commit_reveal_period | Compact<u64> |
| 48 | liquid_alpha_enabled | bool |
| 49 | alpha_high | Compact<u16> |
| 50 | alpha_low | Compact<u16> |
| 51 | bonds_moving_avg | Compact<u64> |
| 52 | hotkeys | Vec<AccountId> |
| 53 | coldkeys | Vec<AccountId> |
| 54 | identities | Vec<Option> |
| 55 | axons | Vec<AxonInfo> |
| 56 | active | Vec<bool> |
| 57 | validator_permit | Vec<bool> |
| 58 | pruning_score | Vec<Compact<u16>> |
| 59 | last_update | Vec<Compact<u64>> |
| 60 | emission | Vec<Compact<u64>> |
| 61 | dividends | Vec<Compact<u16>> |
| 62 | incentives | Vec<Compact<u16>> |
| 63 | consensus | Vec<Compact<u16>> |
| 64 | trust | Vec<Compact<u16>> |
| 65 | rank | Vec<Compact<u16>> |
| 66 | block_at_registration | Vec<Compact<u64>> |
| 67 | alpha_stake | Vec<Compact<u64>> |
| 68 | tao_stake | Vec<Compact<u64>> |
| 69 | total_stake | Vec<Compact<u64>> |
| 70 | tao_dividends_per_hotkey | Vec<(AccountId, Compact<u64>)> |
| 71 | alpha_dividends_per_hotkey | Vec<(AccountId, Compact<u64>)> |
SCALE Encoding
- Rule
- 72 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 72 fields = netuid: Compact<u16>, name: Vec<Compact<u8>>, symbol: Vec<Compact<u8>>, identity: Option, network_registered_at: Compact<u64>, owner_hotkey: AccountId, owner_coldkey: AccountId, block: Compact<u64>, tempo: Compact<u16>, last_step: Compact<u64>, blocks_since_last_step: Compact<u64>, subnet_emission: Compact<u64>, alpha_in: Compact<u64>, alpha_out: Compact<u64>, tao_in: Compact<u64>, alpha_out_emission: Compact<u64>, alpha_in_emission: Compact<u64>, tao_in_emission: Compact<u64>, pending_alpha_emission: Compact<u64>, pending_root_emission: Compact<u64>, subnet_volume: Compact<u128>, moving_price: FixedI128, rho: Compact<u16>, kappa: Compact<u16>, min_allowed_weights: Compact<u16>, max_weights_limit: Compact<u16>, weights_version: Compact<u64>, weights_rate_limit: Compact<u64>, activity_cutoff: Compact<u16>, max_validators: Compact<u16>, num_uids: Compact<u16>, max_uids: Compact<u16>, burn: Compact<u64>, difficulty: Compact<u64>, registration_allowed: bool, pow_registration_allowed: bool, immunity_period: Compact<u16>, min_difficulty: Compact<u64>, max_difficulty: Compact<u64>, min_burn: Compact<u64>, max_burn: Compact<u64>, adjustment_alpha: Compact<u64>, adjustment_interval: Compact<u16>, target_regs_per_interval: Compact<u16>, max_regs_per_block: Compact<u16>, serving_rate_limit: Compact<u64>, commit_reveal_weights_enabled: bool, commit_reveal_period: Compact<u64>, liquid_alpha_enabled: bool, alpha_high: Compact<u16>, alpha_low: Compact<u16>, bonds_moving_avg: Compact<u64>, hotkeys: Vec<AccountId>, coldkeys: Vec<AccountId>, identities: Vec<Option>, axons: Vec<AxonInfo>, active: Vec<bool>, validator_permit: Vec<bool>, pruning_score: Vec<Compact<u16>>, last_update: Vec<Compact<u64>>, emission: Vec<Compact<u64>>, dividends: Vec<Compact<u16>>, incentives: Vec<Compact<u16>>, consensus: Vec<Compact<u16>>, trust: Vec<Compact<u16>>, rank: Vec<Compact<u16>>, block_at_registration: Vec<Compact<u64>>, alpha_stake: Vec<Compact<u64>>, tao_stake: Vec<Compact<u64>>, total_stake: Vec<Compact<u64>>, tao_dividends_per_hotkey: Vec<(AccountId, Compact<u64>)>, alpha_dividends_per_hotkey: Vec<(AccountId, Compact<u64>)>
0x<field0><field1><field2><field3><field4><field5><field6><field7><field8><field9><field10><field11><field12><field13><field14><field15><field16><field17><field18><field19><field20><field21><field22><field23><field24><field25><field26><field27><field28><field29><field30><field31><field32><field33><field34><field35><field36><field37><field38><field39><field40><field41><field42><field43><field44><field45><field46><field47><field48><field49><field50><field51><field52><field53><field54><field55><field56><field57><field58><field59><field60><field61><field62><field63><field64><field65><field66><field67><field68><field69><field70><field71>field 0 netuid: Compact<u16>field 1 name: Vec<Compact<u8>>field 2 symbol: Vec<Compact<u8>>field 3 identity: Optionfield 4 network_registered_at: Compact<u64>field 5 owner_hotkey: AccountIdfield 6 owner_coldkey: AccountIdfield 7 block: Compact<u64>field 8 tempo: Compact<u16>field 9 last_step: Compact<u64>field 10 blocks_since_last_step: Compact<u64>field 11 subnet_emission: Compact<u64>field 12 alpha_in: Compact<u64>field 13 alpha_out: Compact<u64>field 14 tao_in: Compact<u64>field 15 alpha_out_emission: Compact<u64>field 16 alpha_in_emission: Compact<u64>field 17 tao_in_emission: Compact<u64>field 18 pending_alpha_emission: Compact<u64>field 19 pending_root_emission: Compact<u64>field 20 subnet_volume: Compact<u128>field 21 moving_price: FixedI128field 22 rho: Compact<u16>field 23 kappa: Compact<u16>field 24 min_allowed_weights: Compact<u16>field 25 max_weights_limit: Compact<u16>field 26 weights_version: Compact<u64>field 27 weights_rate_limit: Compact<u64>field 28 activity_cutoff: Compact<u16>field 29 max_validators: Compact<u16>field 30 num_uids: Compact<u16>field 31 max_uids: Compact<u16>field 32 burn: Compact<u64>field 33 difficulty: Compact<u64>field 34 registration_allowed: boolfield 35 pow_registration_allowed: boolfield 36 immunity_period: Compact<u16>field 37 min_difficulty: Compact<u64>field 38 max_difficulty: Compact<u64>field 39 min_burn: Compact<u64>field 40 max_burn: Compact<u64>field 41 adjustment_alpha: Compact<u64>field 42 adjustment_interval: Compact<u16>field 43 target_regs_per_interval: Compact<u16>field 44 max_regs_per_block: Compact<u16>field 45 serving_rate_limit: Compact<u64>field 46 commit_reveal_weights_enabled: boolfield 47 commit_reveal_period: Compact<u64>field 48 liquid_alpha_enabled: boolfield 49 alpha_high: Compact<u16>field 50 alpha_low: Compact<u16>field 51 bonds_moving_avg: Compact<u64>field 52 hotkeys: Vec<AccountId>field 53 coldkeys: Vec<AccountId>field 54 identities: Vec<Option>field 55 axons: Vec<AxonInfo>field 56 active: Vec<bool>field 57 validator_permit: Vec<bool>field 58 pruning_score: Vec<Compact<u16>>field 59 last_update: Vec<Compact<u64>>field 60 emission: Vec<Compact<u64>>field 61 dividends: Vec<Compact<u16>>field 62 incentives: Vec<Compact<u16>>field 63 consensus: Vec<Compact<u16>>field 64 trust: Vec<Compact<u16>>field 65 rank: Vec<Compact<u16>>field 66 block_at_registration: Vec<Compact<u64>>field 67 alpha_stake: Vec<Compact<u64>>field 68 tao_stake: Vec<Compact<u64>>field 69 total_stake: Vec<Compact<u64>>field 70 tao_dividends_per_hotkey: Vec<(AccountId, Compact<u64>)>field 71 alpha_dividends_per_hotkey: Vec<(AccountId, Compact<u64>)>Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Metagraph
const value = registry.createType("Metagraph", {
netuid: 0,
name: 0,
symbol: 0,
identity: 0,
network_registered_at: 0,
owner_hotkey: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
owner_coldkey: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
block: 0,
tempo: 0,
last_step: 0,
blocks_since_last_step: 0,
subnet_emission: 0,
alpha_in: 0,
alpha_out: 0,
tao_in: 0,
alpha_out_emission: 0,
alpha_in_emission: 0,
tao_in_emission: 0,
pending_alpha_emission: 0,
pending_root_emission: 0,
subnet_volume: 0,
moving_price: 0,
rho: 0,
kappa: 0,
min_allowed_weights: 0,
max_weights_limit: 0,
weights_version: 0,
weights_rate_limit: 0,
activity_cutoff: 0,
max_validators: 0,
num_uids: 0,
max_uids: 0,
burn: 0,
difficulty: 0,
registration_allowed: true,
pow_registration_allowed: true,
immunity_period: 0,
min_difficulty: 0,
max_difficulty: 0,
min_burn: 0,
max_burn: 0,
adjustment_alpha: 0,
adjustment_interval: 0,
target_regs_per_interval: 0,
max_regs_per_block: 0,
serving_rate_limit: 0,
commit_reveal_weights_enabled: true,
commit_reveal_period: 0,
liquid_alpha_enabled: true,
alpha_high: 0,
alpha_low: 0,
bonds_moving_avg: 0,
hotkeys: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
coldkeys: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
identities: 0,
axons: 0,
active: 0,
validator_permit: 0,
pruning_score: 0,
last_update: 0,
emission: 0,
dividends: 0,
incentives: 0,
consensus: 0,
trust: 0,
rank: 0,
block_at_registration: 0,
alpha_stake: 0,
tao_stake: 0,
total_stake: 0,
tao_dividends_per_hotkey: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
alpha_dividends_per_hotkey: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
});
console.log("Hex:", value.toHex());Type Parameters
AccountId = AccountId
Referenced By (1)
Type Information
- Type ID
- 668
- Kind
- Composite
- Path
- pallet_subtensor::rpc_info::metagraph::Metagraph
- Runtime
- v393