This constant was removed in v150

This constant is no longer available in the current runtime. Existed from v149 to v150. Shown here for historical reference.

MaxHolds

Constant Removed v149 → v150 (removed) u32

Runtime configuration value.

Current Value

50

From Chain Metadata

The maximum number of holds that can exist on an account at any time.

Use Cases

  • Validation checks
  • Capacity limits

Value History

VersionBlockChangeValue
v149#3,014,339Added50
v151#3,157,274Removed50

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

Type Information

Type
u32
Byte Size
4 bytes
Encoding
fixed
Raw Hex
0x32000000

Runtime Info

Pallet
Balances
First Version
v149
Latest Version
v150
Removed In
v150