transactor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 28 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
}

nolint

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)

New Instantiate a new Transactor struct.

func (*Transactor) Address

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

Address is a wrapper around wallet PublicAddress

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)

CreateBidTx for a amount and lockTime

func (*Transactor) CreateStakeTx

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

CreateStakeTx create a stake for amount and lockTime

func (*Transactor) CreateStandardTx

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

CreateStandardTx will create a tx for given amount and address

func (*Transactor) Listen

func (t *Transactor) Listen()

Listen to Wallet requests

func (*Transactor) Wallet

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

Wallet return wallet instance and err

Jump to

Keyboard shortcuts

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