Documentation ¶
Index ¶
- Variables
- func NewErrorResponse(msg string) error
- func NewSuccessRes(object JsonResponse) string
- type BalanceRes
- type BlockResponse
- type ErrorResponse
- type EthereumApi
- func (p *EthereumApi) Create(args *NewTxArgs, reply *string) error
- func (p *EthereumApi) GetBalanceAt(args *GetBalanceArgs, reply *string) error
- func (p *EthereumApi) GetBlock(args *GetBlockArgs, reply *string) error
- func (p *EthereumApi) GetCoinbase(args *interface{}, reply *string) error
- func (p *EthereumApi) GetIsListening(args *interface{}, reply *string) error
- func (p *EthereumApi) GetIsMining(args *interface{}, reply *string) error
- func (p *EthereumApi) GetKey(args interface{}, reply *string) error
- func (p *EthereumApi) GetPeerCount(args *interface{}, reply *string) error
- func (p *EthereumApi) GetStorageAt(args *GetStorageArgs, reply *string) error
- func (p *EthereumApi) GetTxCountAt(args *GetTxCountArgs, reply *string) error
- func (p *EthereumApi) PushTx(args *PushTxArgs, reply *string) error
- func (p *EthereumApi) Test(args *GetBlockArgs, reply *string) error
- func (p *EthereumApi) Transact(args *NewTxArgs, reply *string) error
- type GetBalanceArgs
- type GetBlockArgs
- type GetCoinbaseRes
- type GetListeningRes
- type GetMiningRes
- type GetPeerCountRes
- type GetStorageArgs
- type GetStorageAtRes
- type GetTxCountArgs
- type GetTxCountRes
- type JsonArgs
- type JsonResponse
- type JsonRpcServer
- type Message
- type NewTxArgs
- type PushTxArgs
- type SuccessRes
- type TestRes
- type TxResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var JSON jsonWrapper
Functions ¶
func NewErrorResponse ¶
func NewSuccessRes ¶
func NewSuccessRes(object JsonResponse) string
Types ¶
type BalanceRes ¶
type BlockResponse ¶
type BlockResponse struct {
JsonResponse
}
type ErrorResponse ¶
type EthereumApi ¶
type EthereumApi struct {
// contains filtered or unexported fields
}
func (*EthereumApi) GetBalanceAt ¶
func (p *EthereumApi) GetBalanceAt(args *GetBalanceArgs, reply *string) error
func (*EthereumApi) GetBlock ¶
func (p *EthereumApi) GetBlock(args *GetBlockArgs, reply *string) error
func (*EthereumApi) GetCoinbase ¶
func (p *EthereumApi) GetCoinbase(args *interface{}, reply *string) error
func (*EthereumApi) GetIsListening ¶
func (p *EthereumApi) GetIsListening(args *interface{}, reply *string) error
func (*EthereumApi) GetIsMining ¶
func (p *EthereumApi) GetIsMining(args *interface{}, reply *string) error
func (*EthereumApi) GetKey ¶
func (p *EthereumApi) GetKey(args interface{}, reply *string) error
func (*EthereumApi) GetPeerCount ¶
func (p *EthereumApi) GetPeerCount(args *interface{}, reply *string) error
func (*EthereumApi) GetStorageAt ¶
func (p *EthereumApi) GetStorageAt(args *GetStorageArgs, reply *string) error
func (*EthereumApi) GetTxCountAt ¶
func (p *EthereumApi) GetTxCountAt(args *GetTxCountArgs, reply *string) error
func (*EthereumApi) PushTx ¶
func (p *EthereumApi) PushTx(args *PushTxArgs, reply *string) error
func (*EthereumApi) Test ¶
func (p *EthereumApi) Test(args *GetBlockArgs, reply *string) error
type GetBalanceArgs ¶
type GetBalanceArgs struct {
Address string
}
type GetBlockArgs ¶
type GetCoinbaseRes ¶
type GetCoinbaseRes struct {
Coinbase string `json:"coinbase"`
}
type GetListeningRes ¶
type GetListeningRes struct {
IsListening bool `json:"isListening"`
}
type GetMiningRes ¶
type GetMiningRes struct {
IsMining bool `json:"isMining"`
}
type GetPeerCountRes ¶
type GetPeerCountRes struct {
PeerCount int `json:"peerCount"`
}
type GetStorageArgs ¶
type GetStorageAtRes ¶
type GetTxCountArgs ¶
type GetTxCountArgs struct {
Address string `json:"address"`
}
type GetTxCountRes ¶
type GetTxCountRes struct {
Nonce int `json:"nonce"`
}
type JsonResponse ¶
type JsonResponse interface { }
type JsonRpcServer ¶
type JsonRpcServer struct {
// contains filtered or unexported fields
}
func NewJsonRpcServer ¶
func NewJsonRpcServer(pipe *xeth.JSXEth, port int) (*JsonRpcServer, error)
func (*JsonRpcServer) Start ¶
func (s *JsonRpcServer) Start()
func (*JsonRpcServer) Stop ¶
func (s *JsonRpcServer) Stop()
type Message ¶
type PushTxArgs ¶
type PushTxArgs struct {
Tx string
}
type SuccessRes ¶
type SuccessRes struct { Error bool `json:"error"` Result JsonResponse `json:"result"` }
type TestRes ¶
type TestRes struct { JsonResponse `json:"-"` Answer int `json:"answer"` }
type TxResponse ¶
type TxResponse struct {
Hash string
}
Click to show internal directories.
Click to hide internal directories.