LastTxBlock

Storage Map v101 → current

Block of last transaction for an account.

Explore chain
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

#NameTypeDescription
1
key1
AccountId key1 (AccountId) (hex -> SS58)

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

Relationships

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 LastTxBlock storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("LastTxBlock")](
  key1
);

console.log("LastTxBlock:", result.toHuman());

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

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v101
Current Version
v393