rpc

package
v0.7.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2014 License: LGPL-2.1-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JSON jsonWrapper

Functions

func NewErrorResponse added in v0.7.10

func NewErrorResponse(msg string) error

func NewSuccessRes added in v0.7.10

func NewSuccessRes(object JsonResponse) string

Types

type BalanceRes added in v0.7.10

type BalanceRes struct {
	Balance string `json:"balance"`
	Address string `json:"address"`
}

type BlockResponse added in v0.7.10

type BlockResponse struct {
	JsonResponse
}

type ErrorResponse added in v0.7.10

type ErrorResponse struct {
	Error     bool   `json:"error"`
	ErrorText string `json:"errorText"`
}

type EthereumApi added in v0.7.10

type EthereumApi struct {
	// contains filtered or unexported fields
}

func (*EthereumApi) Create added in v0.7.10

func (p *EthereumApi) Create(args *NewTxArgs, reply *string) error

func (*EthereumApi) GetBalanceAt added in v0.7.10

func (p *EthereumApi) GetBalanceAt(args *GetBalanceArgs, reply *string) error

func (*EthereumApi) GetBlock added in v0.7.10

func (p *EthereumApi) GetBlock(args *GetBlockArgs, reply *string) error

func (*EthereumApi) GetCoinbase added in v0.7.10

func (p *EthereumApi) GetCoinbase(args *interface{}, reply *string) error

func (*EthereumApi) GetIsListening added in v0.7.10

func (p *EthereumApi) GetIsListening(args *interface{}, reply *string) error

func (*EthereumApi) GetIsMining added in v0.7.10

func (p *EthereumApi) GetIsMining(args *interface{}, reply *string) error

func (*EthereumApi) GetKey added in v0.7.10

func (p *EthereumApi) GetKey(args interface{}, reply *string) error

func (*EthereumApi) GetPeerCount added in v0.7.10

func (p *EthereumApi) GetPeerCount(args *interface{}, reply *string) error

func (*EthereumApi) GetStorageAt added in v0.7.10

func (p *EthereumApi) GetStorageAt(args *GetStorageArgs, reply *string) error

func (*EthereumApi) GetTxCountAt added in v0.7.10

func (p *EthereumApi) GetTxCountAt(args *GetTxCountArgs, reply *string) error

func (*EthereumApi) PushTx added in v0.7.10

func (p *EthereumApi) PushTx(args *PushTxArgs, reply *string) error

func (*EthereumApi) Test added in v0.7.10

func (p *EthereumApi) Test(args *GetBlockArgs, reply *string) error

func (*EthereumApi) Transact added in v0.7.10

func (p *EthereumApi) Transact(args *NewTxArgs, reply *string) error

type GetBalanceArgs added in v0.7.10

type GetBalanceArgs struct {
	Address string
}

type GetBlockArgs added in v0.7.10

type GetBlockArgs struct {
	BlockNumber int
	Hash        string
}

type GetCoinbaseRes added in v0.7.10

type GetCoinbaseRes struct {
	Coinbase string `json:"coinbase"`
}

type GetListeningRes added in v0.7.10

type GetListeningRes struct {
	IsListening bool `json:"isListening"`
}

type GetMiningRes added in v0.7.10

type GetMiningRes struct {
	IsMining bool `json:"isMining"`
}

type GetPeerCountRes added in v0.7.10

type GetPeerCountRes struct {
	PeerCount int `json:"peerCount"`
}

type GetStorageArgs added in v0.7.10

type GetStorageArgs struct {
	Address string
	Key     string
}

type GetStorageAtRes added in v0.7.10

type GetStorageAtRes struct {
	Key     string `json:"key"`
	Value   string `json:"value"`
	Address string `json:"address"`
}

type GetTxCountArgs added in v0.7.10

type GetTxCountArgs struct {
	Address string `json:"address"`
}

type GetTxCountRes added in v0.7.10

type GetTxCountRes struct {
	Nonce int `json:"nonce"`
}

type JsonArgs added in v0.7.10

type JsonArgs interface {
	// contains filtered or unexported methods
}

type JsonResponse added in v0.7.10

type JsonResponse interface {
}

type JsonRpcServer added in v0.7.10

type JsonRpcServer struct {
	// contains filtered or unexported fields
}

func NewJsonRpcServer added in v0.7.10

func NewJsonRpcServer(pipe *xeth.JSXEth, port int) (*JsonRpcServer, error)

func (*JsonRpcServer) Start added in v0.7.10

func (s *JsonRpcServer) Start()

func (*JsonRpcServer) Stop added in v0.7.10

func (s *JsonRpcServer) Stop()

type Message added in v0.7.10

type Message struct {
	Call string        `json:"call"`
	Args []interface{} `json:"args"`
	Id   int           `json:"_id"`
	Data interface{}   `json:"data"`
}

func (*Message) Arguments added in v0.7.10

func (self *Message) Arguments() *ethutil.Value

type NewTxArgs added in v0.7.10

type NewTxArgs struct {
	Sec       string
	Recipient string
	Value     string
	Gas       string
	GasPrice  string
	Init      string
	Body      string
}

type PushTxArgs added in v0.7.10

type PushTxArgs struct {
	Tx string
}

type SuccessRes added in v0.7.10

type SuccessRes struct {
	Error  bool         `json:"error"`
	Result JsonResponse `json:"result"`
}

type TestRes added in v0.7.10

type TestRes struct {
	JsonResponse `json:"-"`
	Answer       int `json:"answer"`
}

type TxResponse added in v0.7.10

type TxResponse struct {
	Hash string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL