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(apiURL string, 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 ¶ added in v0.11.0
func DescriptorSumCreate ¶ added in v0.11.0
func ExportKeys ¶ added in v0.2.0
func ExportKeys(extendedKey *hdkeychain.ExtendedKey, strPaths []string, paths [][]uint32, params *chaincfg.Params, recoveryWindow, rescanFrom uint32, exporter KeyExporter, writer io.Writer) error
func ReadMnemonicFromTerminal ¶ added in v0.3.0
func ReadMnemonicFromTerminal(params *chaincfg.Params) (*hdkeychain.ExtendedKey, error)
func SeedBirthdayToBlock ¶ added in v0.2.0
func SummarizeChannels ¶ added in v0.3.0
func SummarizeChannels(apiURL string, channels []*dataformat.SummaryEntry, log btclog.Logger) (*dataformat.SummaryEntryFile, error)
Types ¶
type AddressStats ¶ added in v0.9.3
type Cli ¶ added in v0.2.0
type Cli struct{}
type CliWatchOnly ¶ added in v0.2.0
type CliWatchOnly struct{}
func (*CliWatchOnly) Format ¶ added in v0.2.0
func (c *CliWatchOnly) Format(hdKey *hdkeychain.ExtendedKey, params *chaincfg.Params, path string, branch, index uint32) (string, error)
func (*CliWatchOnly) Header ¶ added in v0.2.0
func (c *CliWatchOnly) Header() string
func (*CliWatchOnly) Trailer ¶ added in v0.2.0
func (c *CliWatchOnly) Trailer(birthdayBlock uint32) string
type Descriptors ¶ added in v0.11.0
type Descriptors struct{}
func (*Descriptors) Format ¶ added in v0.11.0
func (d *Descriptors) Format(hdKey *hdkeychain.ExtendedKey, params *chaincfg.Params, path string, branch, index uint32) (string, error)
func (*Descriptors) Header ¶ added in v0.11.0
func (d *Descriptors) Header() string
func (*Descriptors) Trailer ¶ added in v0.11.0
func (d *Descriptors) Trailer(birthdayBlock uint32) string
type Electrum ¶ added in v0.9.3
type Electrum struct{}
type ExplorerAPI ¶
type ExplorerAPI struct {
BaseURL string
}
func (*ExplorerAPI) Address ¶ added in v0.8.4
func (a *ExplorerAPI) Address(outpoint string) (string, error)
func (*ExplorerAPI) Outpoint ¶ added in v0.5.0
func (a *ExplorerAPI) Outpoint(addr string) (*TX, int, error)
func (*ExplorerAPI) Spends ¶ added in v0.10.7
func (a *ExplorerAPI) Spends(addr string) ([]*TX, error)
func (*ExplorerAPI) Transaction ¶
func (a *ExplorerAPI) Transaction(txid string) (*TX, error)
type ImportWallet ¶ added in v0.2.0
type ImportWallet struct{}
func (*ImportWallet) Format ¶ added in v0.2.0
func (i *ImportWallet) Format(hdKey *hdkeychain.ExtendedKey, params *chaincfg.Params, path string, branch, index uint32) (string, error)
func (*ImportWallet) Header ¶ added in v0.2.0
func (i *ImportWallet) Header() string
func (*ImportWallet) Trailer ¶ added in v0.2.0
func (i *ImportWallet) Trailer(_ uint32) string
type KeyExporter ¶ added in v0.2.0
type KeyExporter interface { Header() string Format(*hdkeychain.ExtendedKey, *chaincfg.Params, string, uint32, uint32) (string, error) Trailer(uint32) string }
func ParseFormat ¶ added in v0.2.0
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.