Documentation ¶
Index ¶
- type BatchElem
- type RPCClient
- func (client RPCClient) BatchCall(batch []BatchElem) error
- func (client RPCClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (client RPCClient) RPCPath() string
- func (client RPCClient) Subscribe(namespace string, payloadChan interface{}, args ...interface{}) (*rpc.ClientSubscription, error)
- func (client RPCClient) SupportedModules() (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
RPCClient is a wrapper around the geth RPC client
func NewRPCClient ¶
NewRPCClient creates a new RpcClient
func (RPCClient) CallContext ¶
func (client RPCClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext makes an rpc method call with the provided context and arguments
func (RPCClient) Subscribe ¶
func (client RPCClient) Subscribe(namespace string, payloadChan interface{}, args ...interface{}) (*rpc.ClientSubscription, error)
Subscribe subscribes to an rpc "namespace_subscribe" subscription with the given channel The first argument needs to be the method we wish to invoke
Click to show internal directories.
Click to hide internal directories.