Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitcoinWallet ¶
type BitcoinWallet interface {
// Returns the type of crytocurrency this wallet implements
CurrencyCode() string
// Get the master private key
MasterPrivateKey() *hd.ExtendedKey
// Get the master public key
MasterPublicKey() *hd.ExtendedKey
// Get the current address for the given purpose
CurrentAddress(purpose spvwallet.KeyPurpose) btc.Address
// Get the confirmed and unconfirmed balances
Balance() (confirmed, unconfirmed int64)
// Send bitcoins to an external wallet
Spend(amount int64, addr btc.Address, feeLevel spvwallet.FeeLevel) error
// Returnt the network parameters
Params() *chaincfg.Params
}
type ExchangeRates ¶
Click to show internal directories.
Click to hide internal directories.