Skip to main content

eth_getStorageAt

Gets a storage value from a contract address, a position, and an optional blockNumber

curl --request POST \
--url https://evm.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": ["0x1e6309dc46a2a4936abda54b69c91d7a3c75a39e","0x100",null],
"method": "eth_getStorageAt"
}'

Params

address required

Schema
type : string
Pattern : ^0x[0-9,a-f,A-F]{40}$

position required

Schema
type : string
Pattern : ^0x([1-9a-f][0-9a-f]{0,63}|0)$

blocknumber optional

Block Number or Tags
oneOf
type : string
Pattern : ^0x([1-9a-f][0-9a-f]{0,15}|0)$

Result

Schema
type : string
Pattern : ^0x[0-9,a-f,A-F]{64}$

Examples

Request

curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getStorageAt",
"params": [
"0x1e6309dc46a2a4936abda54b69c91d7a3c75a39e",
"0x100"
]
}' \
-H "Content-Type: application/json" \
localhost:12539

Response

"0x0000000000000000000000000000000000000000000000000000000000000000"