Skip to main content

eth_getProof

Ethereum API

Returns the merkle proof for a given account and optionally some storage keys.

Params

(3)

1. Address (required)

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

2. StorageKeys (required)

array[string]

3. Block (required)

(any of)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Result

(Account)
address
string
required
Match pattern:
^0x[0-9,a-f,A-F]{40}$
accountProof
array[string]
required
balance
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,31})|0$
codeHash
string
required
Match pattern:
^0x[0-9a-f]{64}$
nonce
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,15})|0$
storageHash
string
required
Match pattern:
^0x[0-9a-f]{64}$
storageProof
array[Storage proof]
required
key
string
required
Match pattern:
^0x[0-9a-f]{0,64}$
value
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]{0,31})|0$
proof
array[string]
required

Params

Address

StorageKeys

Block


Request

await window.ethereum.request({
"method": "eth_getProof",
"params": [
null,
null,
null
]
});