Skip to main content

state_getStorageSize RPC Method

Retrieves the storage size.

Updated on
Oct 4, 2023

state_getStorageSize RPC Method

Parameters

StorageKey
string
REQUIRED
The key for which you want to retrieve the storage size
BlockHash
string
The hash of a specific block in the chain

Returns

u64
string
The storage size in bytes associated with the specified storage key
Request
1
curl https://docs-demo.dot-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"state_getStorageSize","params":["0x06de3d8a54d27e44a9d5ce189618f22d4e7b9012096b41c4eb3aaf947f6ea429"],"id":1,"jsonrpc":"2.0"}'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free