fnotimewallet

package
v0.0.0-...-5f6d39f Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: ISC Imports: 12 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 FnotimeWallet

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

func New

func New(cert, host string, passphrase []byte) (*FnotimeWallet, error)

New returns a FnotimeWallet context.

func (*FnotimeWallet) Close

func (d *FnotimeWallet) Close()

Close shuts down the gRPC connection to the wallet.

func (*FnotimeWallet) Construct

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

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

func (*FnotimeWallet) Lookup

func (d *FnotimeWallet) Lookup(tx chainhash.Hash) (*Result, error)

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

type Result

type Result struct {
	Block         chainhash.Hash
	Timestamp     int64
	Confirmations int32
}

Jump to

Keyboard shortcuts

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