InitialDeposit

Constant v140 → current u64

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 { 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 InitialDeposit constant
const value = api.consts[stringCamelCase("Commitments")][stringCamelCase("InitialDeposit")];
console.log("InitialDeposit:", value.toHuman());

// Convert RAO to TAO if this is a balance value
const taoValue = value.toBigInt() / BigInt(1e9);
console.log("TAO:", taoValue.toString());

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
v393