Documentation ¶
Index ¶
- Constants
- Variables
- func DescriptorSumCheck(s string, require bool) bool
- func DescriptorSumCreate(s string) string
- func ExportKeys(extendedKey *hdkeychain.ExtendedKey, strPaths []string, paths [][]uint32, ...) error
- func ReadMnemonicFromTerminal(params *chaincfg.Params) (*hdkeychain.ExtendedKey, error)
- func SeedBirthdayToBlock(params *chaincfg.Params, birthdayTimestamp time.Time) uint32
- func SummarizeChannels(api *ExplorerAPI, channels []*dataformat.SummaryEntry, log btclog.Logger) (*dataformat.SummaryEntryFile, error)
- type AddressStats
- type Cli
- type CliWatchOnly
- type Descriptors
- type Electrum
- type ExplorerAPI
- func (a *ExplorerAPI) Address(outpoint string) (string, error)
- func (a *ExplorerAPI) Outpoint(addr string) (*TX, int, error)
- func (a *ExplorerAPI) PublishTx(rawTxHex string) (string, error)
- func (a *ExplorerAPI) Spends(addr string) ([]*TX, error)
- func (a *ExplorerAPI) Transaction(txid string) (*TX, error)
- func (a *ExplorerAPI) Unspent(addr string) ([]*Vout, error)
- type ImportWallet
- type KeyExporter
- type Outspend
- type Stats
- type Status
- type TX
- type Vin
- type Vout
Constants ¶
View Source
const ( BIP39MnemonicEnvName = "SEED_MNEMONIC" BIP39PassphraseEnvName = "SEED_PASSPHRASE" )
View Source
const ( FormatCli = "bitcoin-cli" FormatCliWatchOnly = "bitcoin-cli-watchonly" FormatImportwallet = "bitcoin-importwallet" FormatDescriptors = "bitcoin-descriptors" FormatElectrum = "electrum" PasteString = "# Paste the following lines into a command line window." )
Variables ¶
View Source
var (
ErrTxNotFound = errors.New("transaction not found")
)
Functions ¶
func DescriptorSumCheck ¶
func DescriptorSumCreate ¶
func ExportKeys ¶
func ExportKeys(extendedKey *hdkeychain.ExtendedKey, strPaths []string, paths [][]uint32, params *chaincfg.Params, recoveryWindow, rescanFrom uint32, exporter KeyExporter, writer io.Writer) error
func ReadMnemonicFromTerminal ¶
func ReadMnemonicFromTerminal(params *chaincfg.Params) (*hdkeychain.ExtendedKey, error)
func SeedBirthdayToBlock ¶
func SummarizeChannels ¶
func SummarizeChannels(api *ExplorerAPI, channels []*dataformat.SummaryEntry, log btclog.Logger) (*dataformat.SummaryEntryFile, error)
Types ¶
type AddressStats ¶
type Cli ¶
type Cli struct{}
type CliWatchOnly ¶
type CliWatchOnly struct{}
func (*CliWatchOnly) Format ¶
func (c *CliWatchOnly) Format(hdKey *hdkeychain.ExtendedKey, params *chaincfg.Params, path string, branch, index uint32) (string, error)
func (*CliWatchOnly) Header ¶
func (c *CliWatchOnly) Header() string
func (*CliWatchOnly) Trailer ¶
func (c *CliWatchOnly) Trailer(birthdayBlock uint32) string
type Descriptors ¶
type Descriptors struct{}
func (*Descriptors) Format ¶
func (d *Descriptors) Format(hdKey *hdkeychain.ExtendedKey, params *chaincfg.Params, path string, branch, index uint32) (string, error)
func (*Descriptors) Header ¶
func (d *Descriptors) Header() string
func (*Descriptors) Trailer ¶
func (d *Descriptors) Trailer(birthdayBlock uint32) string
type Electrum ¶
type Electrum struct{}
type ExplorerAPI ¶
type ExplorerAPI struct {
BaseURL string
}
func (*ExplorerAPI) Transaction ¶
func (a *ExplorerAPI) Transaction(txid string) (*TX, error)
type ImportWallet ¶
type ImportWallet struct{}
func (*ImportWallet) Format ¶
func (i *ImportWallet) Format(hdKey *hdkeychain.ExtendedKey, params *chaincfg.Params, path string, branch, index uint32) (string, error)
func (*ImportWallet) Header ¶
func (i *ImportWallet) Header() string
func (*ImportWallet) Trailer ¶
func (i *ImportWallet) Trailer(_ uint32) string
type KeyExporter ¶
type KeyExporter interface { Header() string Format(*hdkeychain.ExtendedKey, *chaincfg.Params, string, uint32, uint32) (string, error) Trailer(uint32) string }
func ParseFormat ¶
func ParseFormat(format string) (KeyExporter, error)
ParseFormat parses the given format name and returns its associated print function.
Click to show internal directories.
Click to hide internal directories.