Skip to main content

Parameters

chainId
string
default:"starknet-sepolia"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"starknet_getStorageAt"
required
JSON-RPC method name.
params
object
Parameters for starknet_getStorageAt: [contract_address, key, block_id]Parameters for starknet_getStorageAt:
  • params.contract_address: Address of the contract to read from.
  • params.key: Key to the storage value for the specified contract.
  • params.block_id: BlockID object containing hash and number.

Returns

result
string
Value of the storage at the specified contract address and key. Returns 0 if no value found. Example: “0x0”.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=starknet-sepolia \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "starknet_getStorageAt",
    "params": {
      "contract_address": "0x04D88BeCbd1DC984ae04A96E77828E603c5244e68224903D92CA0a1Ff1C8e807",
      "key": "0x21",
      "block_id": {
        "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4"
      }
    }
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}