kaspadrpc

package
v0.0.0-...-fa2bc5f Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rpcclient.RPCClient

	OnBlockAdded chan *appmessage.BlockAddedNotificationMessage
}

Client represents a connection to the JSON-RPC API of a full node

func GetClient

func GetClient() (*Client, error)

GetClient returns an instance of the RPC client, in case we have an active connection

func NewClient

func NewClient(cfg *config.CommonConfigFlags, subscribeToNotifications bool) (*Client, error)

NewClient creates a new Client

Jump to

Keyboard shortcuts

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