Documentation
¶
Overview ¶
Package btc defines primitives to work with Bitcoin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type Broadcaster interface { // Broadcast broadcasts a raw transaction. Broadcast(raw []byte) error }
Broadcaster is able to broadcast raw Bitcoin transactions.
type Output ¶
type Output struct { TXHash types.ReversedBytes32 PKScript []byte Index int }
Output represents a transaction output.
type UnspentFinder ¶
type UnspentFinder interface { // FindUnspent find unspent outputs for the given address and the // required amount. It returns the outputs and the total amount of the // outputs. FindUnspent(address *types.ReversedBytes20, amount int64) (outputs []Output, total int64, err error) }
UnspentFinder is find unspent outputs.
Directories
¶
Path | Synopsis |
---|---|
Package blockcypher defines primitives to work with the BlockCypher API.
|
Package blockcypher defines primitives to work with the BlockCypher API. |
Package btctesting defines helpers to test Bitcoin.
|
Package btctesting defines helpers to test Bitcoin. |
Package btctimestamper implements a fake Bitcoin timestamper which can be used for testing.
|
Package btctimestamper implements a fake Bitcoin timestamper which can be used for testing. |
Click to show internal directories.
Click to hide internal directories.