message.go 306 B

1234567891011121314
  1. package rpc
  2. import "github.com/ethereum/eth-go/ethutil"
  3. type Message struct {
  4. Call string `json:"call"`
  5. Args []interface{} `json:"args"`
  6. Id int `json:"_id"`
  7. Data interface{} `json:"data"`
  8. }
  9. func (self *Message) Arguments() *ethutil.Value {
  10. return ethutil.NewValue(self.Args)
  11. }