aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/txpool_js.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-10 16:37:10 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:41 +0800
commit87b62f75a7b9c15c17f3352f1b50ad88966e7070 (patch)
treeb63038e521d6d685160725e55168796f7f035179 /rpc/api/txpool_js.go
parentc6c443385b3e9998d3090785e4287e3836c70219 (diff)
downloaddexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar.gz
dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar.zst
dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.zip
added txpool API
Diffstat (limited to 'rpc/api/txpool_js.go')
-rw-r--r--rpc/api/txpool_js.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/rpc/api/txpool_js.go b/rpc/api/txpool_js.go
new file mode 100644
index 000000000..06528d1c4
--- /dev/null
+++ b/rpc/api/txpool_js.go
@@ -0,0 +1,18 @@
+package api
+
+const TxPool_JS = `
+web3._extend({
+ property: 'txpool',
+ methods:
+ [
+ ],
+ properties:
+ [
+ new web3._extend.Property({
+ name: 'status',
+ getter: 'txpool_status',
+ outputFormatter: function(obj) { return obj; }
+ })
+ ]
+});
+`