diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-21 19:24:48 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-21 19:24:48 +0800 |
commit | 10b252dd0517175117d8d4a8ef30b3689a10eda5 (patch) | |
tree | 50c151da01936eb169d4ee6c3a1a717dfd9aabb1 /rpc/message.go | |
parent | 097ba56df59293f9225a8ecdc9e1c43a5ad891bb (diff) | |
download | dexon-10b252dd0517175117d8d4a8ef30b3689a10eda5.tar.gz dexon-10b252dd0517175117d8d4a8ef30b3689a10eda5.tar.zst dexon-10b252dd0517175117d8d4a8ef30b3689a10eda5.zip |
WIP RPC interface
Diffstat (limited to 'rpc/message.go')
-rw-r--r-- | rpc/message.go | 14 |
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) +} |