Queried by: developerswallets
The Big Picture
General rate limiting for account transactions. Tracks the last block when any rate-limited transaction was submitted by an account.
Use Cases
- Check transaction cooldowns
- Debug rate limit errors
- Build transaction timing tools
From Chain Metadata
MAP ( key ) --> last_block
Purpose & Usage
Purpose
Track transaction activity for rate limiting.
Common Query Patterns
- Query by account address
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key | [u8; 32] [32] | key ([u8; 32], hashed key component) |
Stored Value
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 LastTxBlock storage
const key = "0x0000000000000000000000000000000000000000000000000000000000000000";
const result = await api.query.SubtensorModule.LastTxBlock.getValue(key);
console.log("LastTxBlock:", result);On-Chain Activity
Write Frequency
●●●●●○ High 1M–10M est. writes
1M–10M estimated writes
#14 most written storage item
Write Source User Extrinsics
Modified via user-submitted extrinsics
As of block 7,429,232
Version History
v101 block 1 Added
v166–v194 · runtime versions skipped on chain (never deployed)
v195 block 3,791,350 Internal re-bind Current
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v411