Documentation ¶
Index ¶
- Variables
- type InsightClient
- func (i *InsightClient) BlockChannel() chan model.Block
- func (i *InsightClient) BlockNotify() <-chan model.Block
- func (i *InsightClient) Broadcast(tx []byte) (string, error)
- func (i *InsightClient) Close()
- func (i *InsightClient) EstimateFee(nbBlocks int) (int, error)
- func (i *InsightClient) GetBestBlock() (*model.Block, error)
- func (i *InsightClient) GetBlocksBefore(to time.Time, limit int) (*model.BlockList, error)
- func (i *InsightClient) GetInfo() (*model.Info, error)
- func (i *InsightClient) GetRawTransaction(txid string) ([]byte, error)
- func (i *InsightClient) GetTransaction(txid string) (*model.Transaction, error)
- func (i *InsightClient) GetTransactions(addrs []btcutil.Address) ([]model.Transaction, error)
- func (i *InsightClient) GetUtxos(addrs []btcutil.Address) ([]model.Utxo, error)
- func (i *InsightClient) ListenAddress(addr btcutil.Address)
- func (i *InsightClient) Start() error
- func (i *InsightClient) TransactionNotify() <-chan model.Transaction
- func (i *InsightClient) TxChannel() chan model.Transaction
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) 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 (*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) 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
Click to show internal directories.
Click to hide internal directories.