pow_register

Call v475 → current #152

Registers a hotkey on a subnet with a proof-of-work seal, with no TAO burn , no collateral purchase and no transaction fee.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: minerssubnet ownersdevelopers

The Big Picture

Through v400 PoW registration went through register. From v401 register took the burn path and sudo_set_network_pow_registration_allowed returned POWRegistrationDisabled through v473, so no PoW registration existed until this call arrived at v475. The seal binds the signing coldkey, so a solution cannot be replayed by someone else, and the per-hotkey LastPowRegistrationBlock watermark stops reuse of a recent proof. Source: pallets/subtensor/src/macros/dispatches.rs pow_register (call index 152) and pallets/subtensor/src/subnets/registration.rs check_pow_registration, do_pow_register, POW_MAX_WORK_AGE_BLOCKS at v475.

Why This Matters

This is the capital-free way onto a subnet whose owner allows it. You pay in compute and the chain charges no fee for the extrinsic.

Example Scenario

Subnet 42 has PoW enabled. At block 1000 you take the hash of block 999, solve for a nonce whose seal meets the difficulty, and submit pow_register(42, 999, nonce, seal, hotkey) signed by your coldkey before block 1005. NeuronRegistered fires and Difficulty rises for the next registrant.

Common Questions

How fresh must the proof be?
work_block must be earlier than the current block and at most 5 blocks behind it, and later than the last work_block this hotkey registered with.
Can someone else submit my solution?
No. The seal includes the signing coldkey, so a different signer produces a different seal.
Does it cost anything?
No TAO burn, no collateral and no transaction fee. The cost is the computation.

Use Cases

  • Join a subnet whose owner enabled PoW without spending TAO
  • Build a solver that binds netuid, a recent block, hotkey and coldkey into the seal
  • Track PoW registrations separately from burned ones

From Chain Metadata

Register by owner-enabled PoW, without TAO burn, collateral purchase, or transaction fee. The signing coldkey is bound into the proof. Transaction validation verifies the proof before pool admission.

Input Parameters

#NameTypeDescription
0
netuid
NetUid netuid: Subnet ID (u16, 0-65535)
1
work_block
u64 work_block (u64) (RAO -> TAO (/ 10^9))
2
nonce
u64 nonce (u64)
3
work
[u8; 32] [32] work ([u8; 32])
4
hotkey
AccountId hotkey: Account address (32 bytes, SS58-encoded) (hex -> SS58)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Signed by the coldkey bound into the seal
  • Not the root subnet, the subnet exists, and NetworkPowRegistrationAllowed is true for it (otherwise SubNetRegistrationDisabled)
  • The hotkey is not already registered on the subnet and MaxAllowedUids is not zero
  • RegistrationsThisBlock is below MaxRegistrationsPerBlock for the subnet
  • work_block is in the past and at most 5 blocks old, its block hash is known, and it is strictly greater than LastPowRegistrationBlock for the hotkey (otherwise InvalidWorkBlock)
  • work equals the seal keccak256(sha256("subtensor-pow-register-v1" ‖ netuid ‖ hash(work_block) ‖ hotkey ‖ coldkey ‖ nonce)) (otherwise InvalidSeal)
  • The seal meets the effective difficulty, Difficulty clamped to [max(MinDifficulty, 1), max(MaxDifficulty, min)] (otherwise InvalidDifficulty)
  • The hotkey is not a subnet system account and, if it already has an owner, that owner is the signer
  • For a hotkey with no owner yet, the signer holds fewer than 256 entries in both OwnedHotkeys and StakingHotkeys (otherwise TooManyStakingHotkeys)
  • From v488: when the hotkey has a HashedAccounts record, the coldkey meets its security floor (HotkeyOwnerPolicyViolation): a hotkey in HashedAccounts.Accounts needs a coldkey with any HashedAccounts record, and a hotkey in HashedAccounts.MlDsaAccounts or HashedAccounts.DerivedAuthorities needs a coldkey in one of those two maps. A hotkey with no record has no floor (pallets/subtensor/src/staking/helpers.rs L129-L133 and L178-L187, runtime/src/hashed_owner.rs L7-L11, runtime/src/hashed_auth.rs L1030-L1038 at d967d1358, runtime v490)

Effects

Events Emitted

Postconditions

  • The hotkey holds a UID on the subnet, appended or replacing the neuron chosen for pruning
  • LastPowRegistrationBlock for the hotkey holds work_block
  • RegistrationsThisBlock for the subnet is incremented
  • Difficulty is multiplied by BurnIncreaseMult and clamped to the difficulty bounds
  • SubtensorModule.NeuronRegistered emitted with (netuid, uid, hotkey)

Side Effects

  • Pays::No, so the call costs no fee; transaction validation runs the same proof check before the pool admits it
  • The hotkey is associated with the signing coldkey when it had no owner
  • Burn price is untouched: PoW demand moves only Difficulty
  • Registration and proof consumption are one storage transaction, so a refused replacement consumes nothing

Possible Errors

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 pow_register call (typed, named args)
const netuid = 1;
const work_block = 0n;
const nonce = 0n;
const work = "0x0000000000000000000000000000000000000000000000000000000000000000";
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.pow_register({
  netuid,
  work_block,
  nonce,
  work,
  hotkey,
});

On-Chain Activity

Usage Frequency
●○○○○○ Rare <1K extrinsics

Very rare or deprecated

#118 most used call

Success Rate Near-certain

Over 95% of submissions succeed

As of block 9,385,000

Runtime Info

View Source
Pallet Index
7
Call Index
152
First Version
v475
Current Version
v490