The amount reserved when calling extend(). Can differ from EnterDepositAmount to create different economic incentives for extensions vs initial activation.
Current Value
0x00Relevant for: validatorsdevelopers
The Big Picture
Extensions also require deposits. This prevents indefinite safe-mode without ongoing economic commitment. Each extension is tracked and released independently.
From Chain Metadata
The amount that will be reserved upon calling [`Pallet::extend`]. `None` disallows permissionlessly extending the safe-mode and is a sane default.
Use Cases
- Budget for extending safe-mode
- Plan multiple extensions
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 ExtendDepositAmount constant
const value = await api.constants.SafeMode.ExtendDepositAmount();
console.log("ExtendDepositAmount:", 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