client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuorumClient

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

QuorumClient provides access to quorum blockchain node.

func NewQuorumClient

func NewQuorumClient(rawUrl string) (*QuorumClient, error)

func (*QuorumClient) RPCCall

func (qc *QuorumClient) RPCCall(result interface{}, method string, args ...interface{}) error

Execute customized rpc call.

func (*QuorumClient) RPCCallWithTimeout

func (qc *QuorumClient) RPCCallWithTimeout(timeout time.Duration, result interface{}, method string, args ...interface{}) error

func (*QuorumClient) Stop

func (qc *QuorumClient) Stop()

func (*QuorumClient) SubscribeChainHead

func (qc *QuorumClient) SubscribeChainHead(ch chan<- types.RawHeader) error

Subscribe to chain head event.

Jump to

Keyboard shortcuts

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