Saltar al contenido principal

eth_getStorageAt

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

Params

(3)

1. address (required)

string
Match pattern:
^0x[0-9,a-f,A-F]{40}$

2. position (required)

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

3. blocknumber (required)

(one of)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$

Result

(dataWord)
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$

Examples

Request

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

Result

"0x0000000000000000000000000000000000000000000000000000000000000000"

Endpoint

Params

address

position

blocknumber


Request

curl -X POST --data \
'{
"method": "eth_getStorageAt",
"params": [
null,
null,
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://evmtestnet.confluxrpc.com