aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/txpool_js.go
diff options
context:
space:
mode:
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; }
+ })
+ ]
+});
+`