insight

package
v0.0.0-...-57b5d92 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logging.MustGetLogger("client")

Functions

This section is empty.

Types

type InsightClient

type InsightClient struct {
	HTTPClient   http.Client
	RequestFunc  func(endpoint, method string, body []byte, query url.Values) (*http.Response, error)
	SocketClient model.SocketClient
	// contains filtered or unexported fields
}

func NewInsightClient

func NewInsightClient(apiUrl string, proxyDialer proxy.Dialer) (*InsightClient, error)

func (*InsightClient) BlockChannel

func (i *InsightClient) BlockChannel() chan model.Block

func (*InsightClient) BlockNotify

func (i *InsightClient) BlockNotify() <-chan model.Block

func (*InsightClient) Broadcast

func (i *InsightClient) Broadcast(tx []byte) (string, error)

func (*InsightClient) Close

func (i *InsightClient) Close()

func (*InsightClient) EstimateFee

func (i *InsightClient) EstimateFee(nbBlocks int) (int, error)

func (*InsightClient) GetBestBlock

func (i *InsightClient) GetBestBlock() (*model.Block, error)

func (*InsightClient) GetBlocksBefore

func (i *InsightClient) GetBlocksBefore(to time.Time, limit int) (*model.BlockList, error)

func (*InsightClient) GetInfo

func (i *InsightClient) GetInfo() (*model.Info, error)

func (*InsightClient) GetRawTransaction

func (i *InsightClient) GetRawTransaction(txid string) ([]byte, error)

func (*InsightClient) GetTransaction

func (i *InsightClient) GetTransaction(txid string) (*model.Transaction, error)

func (*InsightClient) GetTransactions

func (i *InsightClient) GetTransactions(addrs []btcutil.Address) ([]model.Transaction, error)

func (*InsightClient) GetUtxos

func (i *InsightClient) GetUtxos(addrs []btcutil.Address) ([]model.Utxo, error)

func (*InsightClient) ListenAddress

func (i *InsightClient) ListenAddress(addr btcutil.Address)

func (*InsightClient) Start

func (i *InsightClient) Start() error

func (*InsightClient) TransactionNotify

func (i *InsightClient) TransactionNotify() <-chan model.Transaction

func (*InsightClient) TxChannel

func (i *InsightClient) TxChannel() chan model.Transaction

Jump to

Keyboard shortcuts

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