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 → 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 | Subnet/network identifier (0-65535) |
| 1 | commit | BoundedVec | 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
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Build commit_crv3_weights call
const netuid = 1;
const commit = 0 as any /* BoundedVec */;
const reveal_round = 0;
const call = api.tx[stringCamelCase("SubtensorModule")][stringCamelCase("commit_crv3_weights")](
netuid,
commit,
reveal_round
);Runtime Info
View Source- Pallet Index
- 7
- Call Index
- 99
- First Version
- v216
- Removed In
- v306