Documentation ¶
Index ¶
- type Transactions
- func (p *Transactions) CoinBaseTx([]byte) *blockchain.Transaction
- func (p *Transactions) FindUserBalance([]byte) *big.Int
- func (p *Transactions) FindUserTokensReceived([]byte) *big.Int
- func (p *Transactions) FindUserTokensSend([]byte) *big.Int
- func (p *Transactions) GetLastBlock() ([]byte, *big.Int, error)
- func (p *Transactions) New([]byte, []byte, *big.Int) (*blockchain.Transaction, error)
- func (p *Transactions) SendBlock(input transactionadapter.SendBlockInput) error
- func (p *Transactions) WriteBlock([]byte) (*blockchain.Block, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transactions ¶
Transactions represent a transactions adapter.
func New ¶
func New() *Transactions
func (*Transactions) CoinBaseTx ¶
func (p *Transactions) CoinBaseTx([]byte) *blockchain.Transaction
func (*Transactions) FindUserBalance ¶
func (p *Transactions) FindUserBalance([]byte) *big.Int
func (*Transactions) FindUserTokensReceived ¶
func (p *Transactions) FindUserTokensReceived([]byte) *big.Int
func (*Transactions) FindUserTokensSend ¶
func (p *Transactions) FindUserTokensSend([]byte) *big.Int
func (*Transactions) GetLastBlock ¶
func (p *Transactions) GetLastBlock() ([]byte, *big.Int, error)
func (*Transactions) New ¶
func (p *Transactions) New([]byte, []byte, *big.Int) (*blockchain.Transaction, error)
func (*Transactions) SendBlock ¶
func (p *Transactions) SendBlock(input transactionadapter.SendBlockInput) error
func (*Transactions) WriteBlock ¶
func (p *Transactions) WriteBlock([]byte) (*blockchain.Block, error)
Click to show internal directories.
Click to hide internal directories.