aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/eth_js.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-16 05:51:31 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-11-18 00:51:05 +0800
commit6ea05f5a54c2db009e4379ce917590568b950f42 (patch)
tree5ec4ca0451363dfcb34b4bc094b5fb9baf456c11 /rpc/api/eth_js.go
parent9422eec55460aaca300cabd52124ed0cbd8dedd3 (diff)
downloaddexon-6ea05f5a54c2db009e4379ce917590568b950f42.tar
dexon-6ea05f5a54c2db009e4379ce917590568b950f42.tar.gz
dexon-6ea05f5a54c2db009e4379ce917590568b950f42.tar.bz2
dexon-6ea05f5a54c2db009e4379ce917590568b950f42.tar.lz
dexon-6ea05f5a54c2db009e4379ce917590568b950f42.tar.xz
dexon-6ea05f5a54c2db009e4379ce917590568b950f42.tar.zst
dexon-6ea05f5a54c2db009e4379ce917590568b950f42.zip
rpc/api, xeth: added signTransaction method
SignTransaction creates a transaction but does submit it to the network. SignTransaction returns a structure which includes the transaction object details as well as the RLP encoded transaction that could possibly be submitted by the SendRawTransaction method.
Diffstat (limited to 'rpc/api/eth_js.go')
-rw-r--r--rpc/api/eth_js.go22
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: