Storage queries reference
Each item described here is a StorageDescriptor<[Args, ReturnType, Optional> For example, System.Account is of type
StorageDescriptor<[Args, ReturnType, Optional>
System.Account
Account: StorageDescriptor<[Key: SS58String], { consumers: number; data: { flags: bigint; free: bigint; frozen: bigint; reserved: bigint; }; nonce: number; providers: number; sufficients: number;}, false> Copy
Account: StorageDescriptor<[Key: SS58String], { consumers: number; data: { flags: bigint; free: bigint; frozen: bigint; reserved: bigint; }; nonce: number; providers: number; sufficients: number;}, false>
and can be queried via
const account = await api.query.System.Account.getValue("<AccountId>")console.log(account.data.free) Copy
const account = await api.query.System.Account.getValue("<AccountId>")console.log(account.data.free)
PAPI docs on storage queries for more
Storage queries reference
Each item described here is a
StorageDescriptor<[Args, ReturnType, Optional>
For example,
System.Account
is of typeand can be queried via
See
PAPI docs on storage queries for more