Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetworkToChainParams ¶
Types ¶
type BlockTimestamp ¶
type BlockchainScanner ¶
type BlockchainScanner interface { WatchScripts(ctx context.Context, scripts []string) error UnwatchScripts(ctx context.Context, scripts []string) error GetNotificationChannel(ctx context.Context) <-chan map[string][]Utxo IsTransactionConfirmed(ctx context.Context, txid string) (isConfirmed bool, blocknumber int64, blocktime int64, err error) Close() }
type WalletService ¶
type WalletService interface { GetReadyUpdate(ctx context.Context) <-chan struct{} GenSeed(ctx context.Context) (string, error) Create(ctx context.Context, seed, password string) error Restore(ctx context.Context, seed, password string) error Unlock(ctx context.Context, password string) error Lock(ctx context.Context) error Status(ctx context.Context) WalletStatus GetPubkey(ctx context.Context) (*btcec.PublicKey, error) GetNetwork(ctx context.Context) string GetForfeitAddress(ctx context.Context) (string, error) DeriveConnectorAddress(ctx context.Context) (string, error) DeriveAddresses(ctx context.Context, num int) ([]string, error) SignTransaction( ctx context.Context, partialTx string, extractRawTx bool, inputIndexes []int, ) (string, error) SelectUtxos(ctx context.Context, amount uint64, confirmedOnly bool) ([]Utxo, uint64, error) BroadcastTransaction(ctx context.Context, txs ...string) (string, error) EstimateFees(ctx context.Context, psbt string) (uint64, error) FeeRate(ctx context.Context) (chainfee.SatPerKVByte, error) ListConnectorUtxos(ctx context.Context, connectorAddress string) ([]Utxo, error) MainAccountBalance(ctx context.Context) (uint64, uint64, error) ConnectorsAccountBalance(ctx context.Context) (uint64, uint64, error) LockConnectorUtxos(ctx context.Context, utxos []wire.OutPoint) error GetDustAmount(ctx context.Context) uint64 GetTransaction(ctx context.Context, txid string) (string, error) GetCurrentBlockTime(ctx context.Context) (*BlockTimestamp, error) Withdraw(ctx context.Context, destinationAddress string, amount uint64) (string, error) Close() }
type WalletStatus ¶
Click to show internal directories.
Click to hide internal directories.