EnterDepositAmount

Constant v154 → current Option

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

0x00
Relevant 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 { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query EnterDepositAmount constant
const value = await api.constants.SafeMode.EnterDepositAmount();
console.log("EnterDepositAmount:", value);

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
v411