Get storage entry size
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the size of a storage entry in bytes.
The state_getStorageSize method retrieves the byte size of a specific storage entry at an optional block. This is useful for estimating storage costs, monitoring storage growth, and optimizing data structures.
This method is useful for:
- Storage cost estimation
- Data structure optimization
- Storage growth monitoring
- Resource planning
Body
application/json
jsonrpcstring2.0requiredJSON-RPC version identifier
methodstringstate_getStorageSizerequiredThe method to be invoked
idinteger | stringrequiredRequest identifier for matching responses
paramsArray<string | string>requiredArray containing storage key and optional block hash.
Response
200OK
Storage size retrieved successfully
400Bad Request
Invalid storage key or block hash
500Internal Server Error
Internal server error