跳到主要内容

cfx_getStorageAt

Returns storage entries from a given contract.

Params

(3)

1. addr (required)

string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$

2. pos (required)

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

3. block_hash_or_epoch_number (required)

No schema defined

Result

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

Endpoint

Params

addr

pos

block_hash_or_epoch_number

Unsupported field schema for field root: Unknown field type undefined.

{
  "nullable": true
}

Request

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