eth_getStorageAt
Return the value of a storage location at a given address.
Note
The way that storage is encoded is different (and subject to
change) between Scilla and EVM contracts. Whilst eth_getStorageAt()
may not fail if called on an address containing Scilla code, it will
not return meaningful results.
Parameters
Address
The address of the account to query as a hex value.
Storage slot
A hex encoded 256-bit unsigned integer which determines the storage slot to inspect.
Block ID
A block identifier, as specified by https://eips.ethereum.org/EIPS/eip-1898.
Example Request
curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "eth_getStorageAt",
"params": [ "0xbCa0F6F4CbfE8AC37096B674dE8F96C701C43f7c", "0x0", "latest"
]}' -H "Content-Type: application/json" -X POST "https://api.zq2-prototestnet.zilliqa.com/"
Example response
{"jsonrpc":"2.0","result":"0x000000000000000000000000cb57ec3f064a16cadb36c7c712f4c9fa62b77415","id":"1"}
Arguments
Parameter | Type | Required | Description |
---|---|---|---|
id |
string | Required | "1" |
jsonrpc |
string | Required | "2.0" |
method |
string | Required | "eth_getStorageAt" |
params |
array | Required | [address, storage_slot, block_number] |