MaxSpace

Storage Plain v257 → current

Maximum commitment space per account per rate limit interval.

Explore chain
Queried by: validatorsminersdevelopers

The Big Picture

This is the network-wide limit on commitment size per account per interval.

Use Cases

  • Determine maximum commitment size allowed
  • Calculate remaining space for an account

Purpose & Usage

Purpose

Global configuration for commitment size limits.

Common Query Patterns

  • Query to check current limit

Stored Value

value (u32)

Relationships

Modified By

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 MaxSpace storage (no keys - plain value)
const result = await api.query.Commitments.MaxSpace.getValue();
console.log("MaxSpace:", result);

Runtime Info

View Source
Pallet
Commitments
Storage Kind
Plain
First Version
v257
Current Version
v411