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