transactor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transactor

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

TODO: rename

func New

func New(eb *eventbus.EventBus, rb *rpcbus.RPCBus, db database.DB,
	counter *chainsync.Counter, fdecoys transactions.FetchDecoys,
	finputs wallet.FetchInputs, walletOnly bool) (*Transactor, error)

Instantiate a new Transactor struct.

func (*Transactor) Address

func (t *Transactor) Address() (string, error)

func (*Transactor) Balance

func (t *Transactor) Balance() (uint64, uint64, error)

Balance returns both unlocked wallet balance and locked wallet balance that corresponds to the loaded wallet

func (*Transactor) CreateBidTx

func (t *Transactor) CreateBidTx(amount, lockTime uint64) (transactions.Transaction, error)

func (*Transactor) CreateStakeTx

func (t *Transactor) CreateStakeTx(amount, lockTime uint64) (transactions.Transaction, error)

func (*Transactor) CreateStandardTx

func (t *Transactor) CreateStandardTx(amount uint64, address string) (transactions.Transaction, error)

func (*Transactor) Listen

func (t *Transactor) Listen()

func (*Transactor) Wallet

func (t *Transactor) Wallet() (*wallet.Wallet, error)

Jump to

Keyboard shortcuts

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