TransactionKeyLastBlock
Storage Map v195 → currentLast block for rate-limited transaction by key.
Explore chainQueried by: developers
The Big Picture
Various transactions are rate-limited per key. This tracks the last block for each transaction type to enforce cooldowns.
Use Cases
- Debug rate limits
- Monitor transaction frequency
From Chain Metadata
================================= ==== Axon / Promo Endpoints ===== =================================
Purpose & Usage
Purpose
Track transaction timing for rate limiting.
Common Query Patterns
- Query by (hotkey, netuid, name)
Query Keys
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 TransactionKeyLastBlock storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = 0;
const key3 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("TransactionKeyLastBlock")](
key1,
key2,
key3
);
console.log("TransactionKeyLastBlock:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v195
- Current Version
- v393