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.
Call Workflow
This diagram shows the call execution flow: starting with commit_crv3_weights, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks where it may fail with errors like NotEnoughStakeToSetWeights, WeightVecNotEqualSize, NotSettingEnoughWeights, followed by dispatch, and finally post-dispatch where ExtrinsicSuccess is emitted and fees are settled.
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
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
| # | Name | Type | Description |
|---|---|---|---|
| 0 | netuid | u16 NetUid | netuid: 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
NotEnoughStakeToSetWeightsWeightVecNotEqualSizeNotSettingEnoughWeightsWeightVecLengthIsLowMaxWeightExceededSettingWeightsTooFastIncorrectWeightVersionKeyCanNotSetRootNetworkWeightsNoWeightsCommitFoundWeightsCommitNotAllowedExpiredWeightCommitCommittingWeightsTooFastAdminActionProhibitedDuringWeightsWindow
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