MaxScheduledPerBlock

Constant v133 → current u32

Limits scheduler resource usage.

Current Value

50

From Chain Metadata

The maximum number of scheduled calls in the queue for a single block.

Use Cases

  • Scheduled operations

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

Type Information

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

Runtime Info

Pallet
Scheduler
First Version
v133
Latest Version
v133
Current Runtime
v411