Skip to main content

state_getStorageSize

Description#

Read SCALE‑encoded storage for a key (optionally at a specific block). Use to fetch on‑chain state deterministically and to implement historical reads.

Returns the size (in bytes) of the storage value for the given key.

Code Examples#

curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
+ -H 'Content-Type: application/json' \
+ -d '{"jsonrpc":"2.0","method":"state_getStorageSize","params":[],"id":1}'