This call was removed in v114
This call is no longer available in the current runtime. Existed from v101 to v114. Shown here for historical reference.
create_network_with_weights
Call Removed v101 → v102, v103 → v114 (removed) #48create_network_with_weights call from SubtensorModule pallet .
Call Workflow
This diagram shows the call execution flow: starting with create_network_with_weights, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks where it may fail with errors like NetworkDoesNotExist, SubNetworkDoesNotExist, RootNetworkDoesNotExist, 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.
Input Parameters
Permissions
Origin
Unknown
Required Role
Permission data inferred from metadata. May be incomplete.
Requirements
- Required conditions for addition met
Effects
Postconditions
- Item successfully added/registered
Possible Errors
NetworkDoesNotExistSubNetworkDoesNotExistRootNetworkDoesNotExistNetworkExistHotKeyNotRegisteredInNetworkNotEnoughStakeToSetWeightsWeightVecNotEqualSizeNotSettingEnoughWeightsWeightVecLengthIsLowMaxWeightExceededSettingWeightsTooFastIncorrectWeightVersionKeyEmissionValuesDoesNotMatchNetworksDidNotPassConnectedNetworkRequirementNetworkTxRateLimitExceededIncorrectNetworkVersionKeyAllNetworksInImmunityCanNotSetRootNetworkWeightsNoWeightsCommitFoundWeightsCommitNotAllowedExpiredWeightCommitCommittingWeightsTooFastAdminActionProhibitedDuringWeightsWindow
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 create_network_with_weights call
const netuid = 1;
const n = 0;
const tempo = 0;
const n_vals = 0;
const n_weights = 0;
const call = api.tx[stringCamelCase("SubtensorModule")][stringCamelCase("create_network_with_weights")](
netuid,
n,
tempo,
n_vals,
n_weights
);Version History
v101 block 1 5 args
v103 block 1,075 5 args
v114 Removed
Runtime Info
View Source- Pallet Index
- 7
- Call Index
- 48
- First Version
- v101
- Removed In
- v114