Skip to main content

/pallets/{palletId}/storage/{storageItemId} REST API Endpoint

Returns the value stored under the storageItemId. If it is a map, query param key1 is required. If the storage item is double map query params key1 and key2 are required.

Updated on
Sep 2, 2024

/pallets/{palletId}/storage/{storageItemId} REST API Endpoint

Path Parameters

palletId
string
REQUIRED
The name or index of the pallet to query the storage of
storageItemId
string
REQUIRED
The id of the storage item to query for

Query Parameters

keys
array
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.
at
string
Block at which to query the storage item at.
metadata
boolean
Include the storage items metadata (including documentation) if set to true.

Returns

at
object
The at object which contains the following fields:
hash
string
The unique identifier (hash) of the block
height
string
The block number or height at which the storage item was accessed
pallet
string
The name of the pallet (module) associated with the storage item
palletIndex
string
The index of the pallet in the runtime's list of pallets
storageItem
string
The name of the specific storage item being accessed
keys
array
An array of keys used to access a specific entry in a map storage item
value
string
The current value of the storage item
metadata
object
The metadata object which contains the following fields:
name
string
The name of the storage item
modifier
string
Indicates whether the storage item is Default, Optional, or has another modifier
type
object
The type object which contains the following fields:
plain
string
Represents a plain storage type with a specific type identifier
fallback
string
The default value for the storage item if it is not set
docs
string
Documentation or comments explaining the purpose and details of the storage item
Request
1
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/pallets/system/storage/ExtrinsicCount?metadata=true' \
2
--header 'Accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free