Skip to main content

state_getStorageSize RPC method

Retrieves the storage size.

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

Code Examples

curl https://api-polkadot.dwellir.com/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"state_getStorageSize","params":["0x06de3d8a54d27e44a9d5ce189618f22d4e7b9012096b41c4eb3aaf947f6ea429"],"id":1,"jsonrpc":"2.0"}'