Documentation ¶
Index ¶
- Constants
- type Bch
- func (b *Bch) GetBestAddress() string
- func (b *Bch) GetTransaction(ctx context.Context, txHash string) (*electrum.GetTransactionResult, error)
- func (b *Bch) ListUnspent(ctx context.Context, newAddress string) ([]*electrum.ListUnspentResult, error)
- func (b *Bch) StartNodeTimer()
- func (b *Bch) WatchNewBlocks(ctx context.Context) (<-chan *bitcoin.BlockHeaderAndCoinbase, error)
- type BestBlockHeight
- type Node
- type NodeConnectError
- type NodeStats
- type Nodes
Constants ¶
View Source
const DustLimit = 546
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bch ¶
type Bch struct { Nodes *Nodes // contains filtered or unexported fields }
func (*Bch) GetBestAddress ¶
func (*Bch) GetTransaction ¶
func (*Bch) ListUnspent ¶
type BestBlockHeight ¶
type Node ¶
type Node struct { // config Address string `mapstructure:"Address"` User string `mapstructure:"User"` Password string `mapstructure:"Password"` SSL bool `mapstructure:"SSL"` Fulcrum string `mapstructure:"Fulcrum"` FulcrumPingMin int `mapstructure:"FulcrumPingMin"` // contains filtered or unexported fields }
func (*Node) GetBchClient ¶
func (n *Node) GetBchClient() *bitcoin.Bitcoind
func (*Node) GetElectrumClient ¶
func (*Node) SetBlockHeight ¶
func (*Node) SetConnected ¶
func (n *Node) SetConnected()
type NodeConnectError ¶
type NodeStats ¶
type NodeStats struct { Connected time.Time `json:"connected"` BlockHeight BestBlockHeight `json:"block_height"` LostConnections []*NodeConnectError `json:"lost_connections"` LastNotified time.Time `json:"last_notified"` }
Node stats available via HTTP API as JSON
Click to show internal directories.
Click to hide internal directories.