Account

Storage Map v101 → current

Core account data including nonce, providers, and consumers.

Explore chain
Queried by: developerswalletsanalytics

The Big Picture

Every account on Subtensor has an entry here. Different from Balances.Account which tracks balance.

Use Cases

  • Get account nonce before signing
  • Check if account exists on-chain

From Chain Metadata

The full account information for a particular account ID.

Purpose & Usage

Purpose

Tracks account existence, reference counting, and transaction nonce.

Common Query Patterns

  • Query by account address
  • Get nonce for transaction signing
  • Check if account exists
Part of: Stake Operations

Query Keys

#NameTypeDescription
1
key1
→ account
AccountId Account address (hex -> SS58)

Stored Value

Account data (nonce, balances, locks)

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

const result = await api.query
  [stringCamelCase("System")]
  [stringCamelCase("Account")](
  key1
);

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

Runtime Info

Pallet
System
Storage Kind
Map
First Version
v101
Current Version
v393