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 ¶ added in v0.7.10
func NewSuccessRes ¶ added in v0.7.10
func NewSuccessRes(object JsonResponse) string
Types ¶
type BalanceRes ¶ added in v0.7.10
type BlockResponse ¶ added in v0.7.10
type BlockResponse struct {
JsonResponse
}
type ErrorResponse ¶ added in v0.7.10
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
type GetBalanceArgs ¶ added in v0.7.10
type GetBalanceArgs struct {
Address string
}
type GetBlockArgs ¶ added in v0.7.10
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 GetStorageAtRes ¶ added in v0.7.10
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 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
}
Click to show internal directories.
Click to hide internal directories.