Queried by: developerswallets
The Big Picture
General rate limit for certain transactions. Prevents spam and ensures fair access to block space.
Use Cases
- Understand transaction limits
- Plan transaction batching
- Build rate-aware tools
Purpose & Usage
Purpose
Control transaction frequency network-wide.
Common Query Patterns
- Single value query
Stored Value
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 TxRateLimit storage (no keys - plain value)
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("TxRateLimit")]();
console.log("TxRateLimit:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v393