Documentation ¶
Index ¶
- func GetRawTx(txid string) (*wire.MsgTx, error)
- type APILink
- func (a *APILink) ClockLoop()
- func (a *APILink) GetAdrTxos() error
- func (a *APILink) GetOPTxs() error
- func (a *APILink) PushTx(tx *wire.MsgTx) error
- func (a *APILink) RawBlocks() chan *wire.MsgBlock
- func (a *APILink) RegisterAddress(adr160 [20]byte) error
- func (a *APILink) RegisterOutPoint(op wire.OutPoint) error
- func (a *APILink) Start(startHeight int32, host, path string, params *chaincfg.Params) (chan lnutil.TxAndHeight, chan int32, error)
- func (a *APILink) UpdateHeight(height int32)
- type AdrUtxoResponse
- type RawTxResponse
- type TxResponse
- type VoutJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APILink ¶
type APILink struct { // TrackingAdrs and OPs are slices of addresses and outpoints to watch for. // Using struct{} saves a byte of RAM but is ugly so I'll use bool. TrackingAdrs map[[20]byte]bool TrackingAdrsMtx sync.Mutex TrackingOPs map[wire.OutPoint]bool TrackingOPsMtx sync.Mutex TxUpToWallit chan lnutil.TxAndHeight CurrentHeightChan chan int32 // contains filtered or unexported fields }
APILink is a link to a web API that can tell you about blockchain data.
func (*APILink) GetAdrTxos ¶
GetAdrTxos ...use insight api. at least that's open source, can run yourself, seems to have some dev activity behind it.
func (*APILink) PushTx ¶
PushTx pushes a tx to the network via the smartbit site / api smartbit supports segwit so
func (*APILink) RegisterAddress ¶
RegisterAddress gets a 20 byte address from the wallit and starts watching for utxos at that address.
func (*APILink) RegisterOutPoint ¶
RegisterOutPoint gets an outpoint from the wallit and starts looking for txins that spend it.
func (*APILink) Start ¶
func (a *APILink) Start( startHeight int32, host, path string, params *chaincfg.Params) ( chan lnutil.TxAndHeight, chan int32, error)
Start starts the APIlink
func (*APILink) UpdateHeight ¶
type AdrUtxoResponse ¶
ARGHGH all fields have to be exported (caps) or the json unmarshaller won't populate them !
type TxResponse ¶
Click to show internal directories.
Click to hide internal directories.