Support for eth_getProof RPC (#2986)

This commit is contained in:
Jaco Greeff
2020-12-27 12:59:29 +01:00
committed by GitHub
parent d9acf1cfea
commit 811f9f7868
3 changed files with 31 additions and 2 deletions
@@ -222,8 +222,8 @@ const types: DefinitionsTypes = {
logsBloom: 'EthBloom'
},
EthWork: {
pow_hash: 'H256',
seed_hash: 'H256',
powHash: 'H256',
seedHash: 'H256',
target: 'H256',
number: 'Option<u64>'
}
+9
View File
@@ -123,6 +123,15 @@ export const rpc: DefinitionsRpc = {
],
type: 'Vec<EthLog>'
},
getProof: {
description: 'Returns proof for account and storage.',
params: [
{ name: 'address', type: 'H160' },
{ name: 'storageKeys', type: 'Vec<H256>' },
{ name: 'number', type: 'BlockNumber' }
],
type: 'EthAccount'
},
getStorageAt: {
description: 'Returns content of the storage at given address.',
params: [