sudo_set_owner_cut_enabled

Call v411 → current New #92

Enables or disables owner cut on a subnet .

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: subnet ownersvalidatorsanalytics

The Big Picture

Owner cut is the share of subnet emissions routed to the owner hotkey based on conviction weight. Owners (or root) can switch the cut off entirely per subnet.

Use Cases

  • Subnet owner waives their cut as a launch incentive
  • Network governance disables owner cut on a subnet

From Chain Metadata

Set whether the subnet owner cut is enabled for a subnet. It is only callable by root and subnet owner.

Part of: Subnet Emission Control

Input Parameters

#NameTypeDescription
0
netuid
u16 NetUidSubnet whose owner-cut switch is being set
1
enabled
bool Whether the subnet owner receives any cut at all

Permissions

Origin
Root
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller is root or subnet owner

Effects

Postconditions

  • OwnerCutEnabled[netuid] updated

Side Effects

  • When disabled, the subnet owner does not receive an owner cut

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);

// Build sudo_set_owner_cut_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_owner_cut_enabled({
  netuid,
  enabled,
});

Runtime Info

View Source
Pallet Index
19
Call Index
92
First Version
v411
Current Version
v411