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 { 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 DefaultDepositLimit constant
const value = await api.constants.Contracts.DefaultDepositLimit();
console.log("DefaultDepositLimit:", 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
- 0x002ce10100000000
Runtime Info
- Pallet
- Contracts
- First Version
- v334
- Latest Version
- v334
- Current Runtime
- v411