DefaultDepositLimit

Constant v334 → current u64

Sets an upper bound on storage deposits per contract.

Current Value

0.03153408 TAO (31534080 raw)

Conversion: ÷ 10^9 (RAO → TAO)

Relevant for: developers

The Big Picture

Contracts can't consume unlimited deposits. This limit caps how much deposit a single deployment can require. Very large contracts may need special handling or splitting.

From Chain Metadata

Fallback value to limit the storage deposit if it's not being set by the caller.

Use Cases

  • Understand deposit limits for deployments
  • Plan contract sizes accordingly

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 DefaultDepositLimit constant
const value = api.consts[stringCamelCase("Contracts")][stringCamelCase("DefaultDepositLimit")];
console.log("DefaultDepositLimit:", 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
0x002ce10100000000

Runtime Info

Pallet
Contracts
First Version
v334
Latest Version
v334
Current Runtime
v393