The amount reserved from caller's account when calling enter(). Deters frivolous activations by requiring economic commitment . Set to None to disable permissionless entry.
Current Value
0x00Relevant for: validatorsdevelopers
The Big Picture
The deposit creates economic skin in the game. Activating safe-mode without good reason risks this deposit to slashing.
From Chain Metadata
The amount that will be reserved upon calling [`Pallet::enter`]. `None` disallows permissionlessly enabling the safe-mode and is a sane default.
Use Cases
- Budget for emergency safe-mode activation
- Understand entry barrier
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 });
// Query EnterDepositAmount constant
const value = api.consts[stringCamelCase("SafeMode")][stringCamelCase("EnterDepositAmount")];
console.log("EnterDepositAmount:", value.toHuman());Type Information
- Type
- Option
- Byte Size
- variable bytes
- Encoding
- composite
- Raw Hex
- 0x00
Runtime Info
- Pallet
- SafeMode
- First Version
- v154
- Latest Version
- v154
- Current Runtime
- v393