This call was removed in v306

This call is no longer available in the current runtime. Existed from v216 to v306. Shown here for historical reference.

commit_crv3_weights

Call Removed v216 → v277, v290 → v306 (removed) #99

---- Used to commit encrypted commit-reveal v3 weight values to later be revealed.

Click items to navigate. Pan and zoom to explore.

From Chain Metadata

- Used to commit encrypted commit-reveal v3 weight values to later be revealed.

Input Parameters

#NameTypeDescription
0
netuid
u16 NetUidnetuid: Subnet ID (u16, 0-65535)
1
commit
BoundedVec BoundedVec<u8, ConstU32<MAX_CRV3_COMMIT_SIZE_BYTES>>commit (BoundedVec)
2
reveal_round
u64 reveal_round (u64)

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Possible Errors

Code Examples

// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 commit_crv3_weights call (typed, named args)
const netuid = 1;
const commit = undefined as any /* BoundedVec — replace with real value */;
const reveal_round = 0n;

const tx = api.tx.SubtensorModule.commit_crv3_weights({
  netuid,
  commit,
  reveal_round,
});

Version History

v216 block 4,510,996 3 args
v290 block 5,947,548 3 args
v306 Removed

Runtime Info

View Source
Pallet Index
7
Call Index
99
First Version
v216
Removed In
v306