internal/ethapi: support retrieving header RLPs too

This commit is contained in:
Péter Szilágyi
2021-10-01 11:45:47 +03:00
parent f2491c5ed7
commit 07a5bc1b0b
2 changed files with 18 additions and 0 deletions

View File

@ -223,6 +223,11 @@ web3._extend({
params: 1,
outputFormatter: console.log
}),
new web3._extend.Method({
name: 'getHeaderRlp',
call: 'debug_getHeaderRlp',
params: 1
}),
new web3._extend.Method({
name: 'getBlockRlp',
call: 'debug_getBlockRlp',