From Chain Metadata
Named reserves on some account balances.
Purpose & Usage
Purpose
Track funds reserved for specific purposes.
Common Query Patterns
- Query by account address
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | accountId account raw: key1 | AccountId [u8; 32] | key1 (AccountId) (hex -> SS58) |
Stored Value
value (BoundedVec)
Default Value
0x00 (raw SCALE bytes)
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
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 Reserves storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.Balances.Reserves.getValue(key1);
console.log("Reserves:", result);Runtime Info
- Pallet
- Balances
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v472