force_enter
Call v154 → current #1Force-enter safe-mode without deposit (privileged origin only).
View calls on chainCall Workflow
This diagram shows the call execution flow: starting with force_enter, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: Entered and modifies storage: EnteredUntil, 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
While anyone can enter safe-mode with a deposit, privileged actors (governance, sudo) can do so without one. This allows rapid response when time is critical.
Use Cases
- Governance-initiated emergency response
- Rapid response to critical vulnerabilities
- Coordinated network pause for upgrades
From Chain Metadata
Enter safe-mode by force for a per-origin configured number of blocks. Emits an [`Event::Entered`] event on success. Errors with [`Error::Entered`] if the safe-mode is already entered. Can only be called by the [`Config::ForceEnterOrigin`] origin.
This call takes no parameters.
Permissions
Origin
Unknown
Required Role
Permission data inferred from metadata. May be incomplete.
Requirements
- Caller is ForceEnterOrigin (typically sudo/council)
- Safe-mode is not already entered
Effects
Events Emitted
Storage Modified
Postconditions
- Safe-mode is entered for configured duration
- EnteredUntil storage is set
- No deposit reserved
Side Effects
- Network operations restricted during safe-mode
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 force_enter call (no parameters)
const call = api.tx[stringCamelCase("SafeMode")][stringCamelCase("force_enter")]();Runtime Info
- Pallet Index
- 20
- Call Index
- 1
- First Version
- v154
- Current Version
- v393