Skip to main content

state_getStorageSize RPC Method

Retrieves the storage size.

Updated on
Apr 01, 2026

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

result
integer

The storage size in bytes associated with the specified storage key

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": 2,
4
"id": 1
5
}
1
{
2
"jsonrpc": "2.0",
3
"result": 2,
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free