ethapi: add personal.signTransaction (#15971)

* ethapi: add personal.signTransaction

* ethapi: refactor to minimize duplicate code

* ethapi: make nonce,gas,gasPrice obligatory in signTransaction
This commit is contained in:
Martin Holst Swende
2018-01-26 18:32:43 +01:00
committed by Péter Szilágyi
parent 23bca0f374
commit 722bac84fa
2 changed files with 60 additions and 20 deletions

View File

@ -517,6 +517,12 @@ web3._extend({
call: 'personal_deriveAccount',
params: 3
}),
new web3._extend.Method({
name: 'signTransaction',
call: 'personal_signTransaction',
params: 2,
inputFormatter: [web3._extend.formatters.inputTransactionFormatter, null]
}),
],
properties: [
new web3._extend.Property({