Economic spam prevention for commitment registration .
Current Value
0 TAO (0 raw)
Conversion: ÷ 10^9 (RAO → TAO)
Relevant for: validatorsminersdevelopers
The Big Picture
Like identity registration, commitments may require a deposit to prevent spam. This is the base deposit for creating a commitment. Currently set to 0 on Bittensor, meaning no deposit required.
Why This Matters
Check if a deposit is required before committing. If non-zero, you need this TAO reserved.
Example
InitialDeposit is 0. You can create commitments without locking any TAO for deposit.
Common Questions
- Do I get the deposit back?
- Yes, when you clear or replace your commitment, the deposit is returned.
From Chain Metadata
The amount held on deposit for a registered identity
Use Cases
- Calculate deposit needed for first commitment
- Plan budget for commitment operations
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 InitialDeposit constant
const value = await api.constants.Commitments.InitialDeposit();
console.log("InitialDeposit:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;Type Information
- Type
- u64
- Byte Size
- 8 bytes
- Encoding
- fixed
- Raw Hex
- 0x0000000000000000
Runtime Info
- Pallet
- Commitments
- First Version
- v140
- Latest Version
- v140
- Current Runtime
- v411