dcrtimewallet

package
v0.0.0-...-f5d5c59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2023 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseLogger

func UseLogger(l slog.Logger)

UseLogger sets the logger to use for the gRPC server.

Types

type BalanceResult

type BalanceResult struct {
	Total       int64
	Spendable   int64
	Unconfirmed int64
}

BalanceResult contains information about the backing dcrwallet account balance connected to by dcrtimed.

type DcrtimeWallet

type DcrtimeWallet struct {
	// contains filtered or unexported fields
}

func New

func New(cert, host, clientCert, clientKey string, passphrase []byte) (*DcrtimeWallet, error)

New returns a DcrtimeWallet context.

func (*DcrtimeWallet) Close

func (d *DcrtimeWallet) Close()

Close shuts down the gRPC connection to the wallet.

func (*DcrtimeWallet) Construct

func (d *DcrtimeWallet) Construct(merkleRoot [sha256.Size]byte) (*chainhash.Hash, error)

Construct creates aand submits an anchored tx with the provided merkle root.

func (*DcrtimeWallet) GetWalletBalance

func (d *DcrtimeWallet) GetWalletBalance() (*BalanceResult, error)

GetWalletBalance returns balance information from the wallet account.

func (*DcrtimeWallet) Lookup

func (d *DcrtimeWallet) Lookup(tx chainhash.Hash) (*TxLookupResult, error)

Lookup looks up the provided TX hash and returns a Result structure.

type TxLookupResult

type TxLookupResult struct {
	BlockHash     chainhash.Hash
	Timestamp     int64
	Confirmations int32
	BlockHeight   int32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL