Skip to main content

state_getStorage

Returns a storage entry at a specific key on Asset Hub.

Why Asset Hub? Build on Polkadot's system parachain managing $4.5B+ in DOT tokens, native USDC/USDT, and NFTs with 50-90% lower fees than Relay Chain, fee payment in any supported asset, 1.5M+ accounts migrated, and trustless Ethereum bridge access.

Use Cases#

  • State queries - Read on-chain storage values
  • Account balances - Query account data for native stablecoin transfers (USDC, USDT), DOT staking and governance, and cross-chain asset management via XCM
  • Pallet storage - Access runtime storage items
  • Historical state - Query state at specific blocks

Parameters#

ParameterTypeRequiredDescription
keyStringYesStorage key (hex-encoded)
blockHashStringNoBlock hash for historical query

Request#

{
"jsonrpc": "2.0",
"method": "state_getStorage",
"params": [""],
"id": 1
}

Code Examples#

curl https://api-asset-hub-polkadot.n.dwellir.com/<YOUR_API_KEY>/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "state_getStorage",
"params": [""],
"id": 1
}'