Documentation
¶
Index ¶
- type Transactor
- func (t *Transactor) Address() (string, error)
- func (t *Transactor) Balance() (uint64, uint64, error)
- func (t *Transactor) CreateBidTx(amount, lockTime uint64) (transactions.Transaction, error)
- func (t *Transactor) CreateStakeTx(amount, lockTime uint64) (transactions.Transaction, error)
- func (t *Transactor) CreateStandardTx(amount uint64, address string) (transactions.Transaction, error)
- func (t *Transactor) Listen()
- func (t *Transactor) Wallet() (*wallet.Wallet, error)
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()
Click to show internal directories.
Click to hide internal directories.