diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-11-21 04:36:56 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-11-21 04:36:56 +0800 |
commit | 6bb29aebeefc64c765f0a2b5ab66f85d928f56cd (patch) | |
tree | 220bcd3f4866b94cc9b790e23b2cbb3ec6b04b1e /rpc/api/eth_js.go | |
parent | 314c031ff226c2ea623228d23fe5d5cc866f7980 (diff) | |
parent | 6ea05f5a54c2db009e4379ce917590568b950f42 (diff) | |
download | go-tangerine-6bb29aebeefc64c765f0a2b5ab66f85d928f56cd.tar.gz go-tangerine-6bb29aebeefc64c765f0a2b5ab66f85d928f56cd.tar.zst go-tangerine-6bb29aebeefc64c765f0a2b5ab66f85d928f56cd.zip |
Merge pull request #1666 from obscuren/create-transaction
rpc/api, xeth: added signTransaction method
Diffstat (limited to 'rpc/api/eth_js.go')
-rw-r--r-- | rpc/api/eth_js.go | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/rpc/api/eth_js.go b/rpc/api/eth_js.go index 75c103c9d..dfc104ad8 100644 --- a/rpc/api/eth_js.go +++ b/rpc/api/eth_js.go @@ -36,11 +36,23 @@ web3._extend({ params: 3, inputFormatter: [web3._extend.formatters.inputTransactionFormatter, web3._extend.utils.fromDecimal, web3._extend.utils.fromDecimal] }), - new web3._extend.Method({ - name: 'getNatSpec', - call: 'eth_getNatSpec', - params: 1, - inputFormatter: [web3._extend.formatters.inputTransactionFormatter] + new web3._extend.Method({ + name: 'getNatSpec', + call: 'eth_getNatSpec', + params: 1, + inputFormatter: [web3._extend.formatters.inputTransactionFormatter] + }), + new web3._extend.Method({ + name: 'signTransaction', + call: 'eth_signTransaction', + params: 1, + inputFormatter: [web3._extend.formatters.inputTransactionFormatter] + }), + new web3._extend.Method({ + name: 'submitTransaction', + call: 'eth_submitTransaction', + params: 1, + inputFormatter: [web3._extend.formatters.inputTransactionFormatter] }) ], properties: |