authorize_upgrade_without_checks
Call v151 → current #10Authorize upgrade without version validation (root only, dangerous).
View calls on chainCall Workflow
This diagram shows the call execution flow: starting with authorize_upgrade_without_checks, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: UpgradeAuthorized and modifies storage: AuthorizedUpgrade, 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.
Used by: validatorsdevelopers
The Big Picture
Like authorize_upgrade but skips version checks. Use only when normal path fails.
Use Cases
- Emergency fixes that change spec name
- Recovery from stuck upgrades
From Chain Metadata
Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied later. WARNING: This authorizes an upgrade that will take place without any safety checks, for example that the spec name remains the same and that the version number increases. Not recommended for normal use. Use `authorize_upgrade` instead. This call requires Root origin.
Input Parameters
| # | Name | Type | Description |
|---|---|---|---|
| 0 | code_hash | H256 | code_hash (H256) |
Permissions
Origin
Unknown
Required Role
Permission data inferred from metadata. May be incomplete.
Requirements
- Caller is root/sudo
- Valid code hash
Effects
Events Emitted
Storage Modified
Postconditions
- Upgrade authorized without version checks
Side Effects
- Bypasses spec name and version validation
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 authorize_upgrade_without_checks call
const code_hash = 0 as any /* H256 */;
const call = api.tx[stringCamelCase("System")][stringCamelCase("authorize_upgrade_without_checks")](
code_hash
);Runtime Info
- Pallet Index
- 0
- Call Index
- 10
- First Version
- v151
- Current Version
- v393