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 { 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 MaxHolds constant
const value = await api.constants.Balances.MaxHolds();
console.log("MaxHolds:", value);

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