aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/message.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-21 19:24:48 +0800
committerobscuren <geffobscura@gmail.com>2014-10-21 19:24:48 +0800
commit10b252dd0517175117d8d4a8ef30b3689a10eda5 (patch)
tree50c151da01936eb169d4ee6c3a1a717dfd9aabb1 /rpc/message.go
parent097ba56df59293f9225a8ecdc9e1c43a5ad891bb (diff)
downloaddexon-10b252dd0517175117d8d4a8ef30b3689a10eda5.tar.gz
dexon-10b252dd0517175117d8d4a8ef30b3689a10eda5.tar.zst
dexon-10b252dd0517175117d8d4a8ef30b3689a10eda5.zip
WIP RPC interface
Diffstat (limited to 'rpc/message.go')
-rw-r--r--rpc/message.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/rpc/message.go b/rpc/message.go
new file mode 100644
index 000000000..0ee2fe77c
--- /dev/null
+++ b/rpc/message.go
@@ -0,0 +1,14 @@
+package rpc
+
+import "github.com/ethereum/eth-go/ethutil"
+
+type Message struct {
+ Call string `json:"call"`
+ Args []interface{} `json:"args"`
+ Id int `json:"_id"`
+ Data interface{} `json:"data"`
+}
+
+func (self *Message) Arguments() *ethutil.Value {
+ return ethutil.NewValue(self.Args)
+}