AutoParentDelegationEnabled

Storage Map v401 → current

--- MAP ( hotkey ) --> parent_delegation_enabled

Explore chain

From Chain Metadata

MAP ( hotkey ) --> parent_delegation_enabled When `true`, this root validator allows auto parent delegation. Defaults to `true`; validators can opt out at any time by calling `set_auto_parent_delegation_enabled(false)`.

Purpose & Usage

Common Query Patterns

  • Query by key
  • Iterate all entries

Query Keys

#NameTypeDescription
1
hotkey
AccountId [u8; 32]hotkey (AccountId, hashed key component) (hex -> SS58)

Stored Value

parent_delegation_enabled (bool)

Default Value

true 0x01

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query AutoParentDelegationEnabled storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.AutoParentDelegationEnabled.getValue(hotkey);
console.log("AutoParentDelegationEnabled:", result);

On-Chain Activity

Write Frequency
●●○○○○ Minimal <10K est. writes

Fewer than 10K writes

#350 most written storage item

Write Source User Extrinsics

Modified via user-submitted extrinsics

As of block 9,385,000

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v401
Current Version
v490