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
Purpose & Usage
Purpose
Track transaction activity for rate limiting.
Common Query Patterns
- Query by account address
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | AccountId [u8; 32] | key1 (AccountId) (hex -> SS58) |
Stored Value
Value in RAO (÷10⁹ for TAO)
RAO -> TAO (/ 10^9)
Default Value
0 0x0000000000000000
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
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 key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.LastTxBlock.getValue(key1);
console.log("LastTxBlock:", result);On-Chain Activity
Write Frequency
●●●●●○ High 1M–10M est. writes
1M to 10M writes
#114 most written storage item
Write Source Calls + Hooks
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v490