Path Parameters
- palletIdstringREQUIRED
The name or index of the pallet to query the storage of
- storageItemIdstringREQUIRED
The id of the storage item to query for
Query Parameters
- keysarray
Set of N keys used for querying a storage map. It should be queried using the following format - ?keys[]=key1&keys[]=key2. Order matters, as it will determine the order the keys are passed into the storage calls.
- atstring
Block at which to query the storage item at.
- metadataboolean
Include the storage items metadata (including documentation) if set to true.
Returns
- atobject
The at object which contains the following fields:
- hashstring
The unique identifier (hash) of the block
- heightstring
The block number or height at which the storage item was accessed
- palletstring
The name of the pallet (module) associated with the storage item
- palletIndexstring
The index of the pallet in the runtime's list of pallets
- storageItemstring
The name of the specific storage item being accessed
- keysarray
An array of keys used to access a specific entry in a map storage item
- valuestring | null
The current value of the storage item
- metadataobject
The metadata object which contains the following fields:
- namestring
The name of the storage item
- modifierstring
Indicates whether the storage item is Default, Optional, or has another modifier
- typeobject
The type object which contains the following fields:
- plainstring
Represents a plain storage type with a specific type identifier
- fallbackstring
The default value for the storage item if it is not set
- docsstring
Documentation or comments explaining the purpose and details of the storage item