Documentation ¶
Index ¶
- func NewRewardTransaction(recipientAddress string, timestamp int64, value uint64) *network.TransactionResponse
- type Transaction
- func (transaction *Transaction) Equals(other *network.TransactionResponse) bool
- func (transaction *Transaction) Fee() uint64
- func (transaction *Transaction) GetResponse() *network.TransactionResponse
- func (transaction *Transaction) IsReward() bool
- func (transaction *Transaction) MarshalJSON() ([]byte, error)
- func (transaction *Transaction) RecipientAddress() string
- func (transaction *Transaction) SenderAddress() string
- func (transaction *Transaction) Timestamp() int64
- func (transaction *Transaction) Value() uint64
- func (transaction *Transaction) VerifySignature() error
- type TransactionsPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRewardTransaction ¶
func NewRewardTransaction(recipientAddress string, timestamp int64, value uint64) *network.TransactionResponse
Types ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransactionFromRequest ¶
func NewTransactionFromRequest(transactionRequest *network.TransactionRequest) (*Transaction, error)
func NewTransactionFromResponse ¶
func NewTransactionFromResponse(transactionResponse *network.TransactionResponse) (transaction *Transaction, err error)
func (*Transaction) Equals ¶
func (transaction *Transaction) Equals(other *network.TransactionResponse) bool
func (*Transaction) Fee ¶
func (transaction *Transaction) Fee() uint64
func (*Transaction) GetResponse ¶
func (transaction *Transaction) GetResponse() *network.TransactionResponse
func (*Transaction) IsReward ¶
func (transaction *Transaction) IsReward() bool
func (*Transaction) MarshalJSON ¶
func (transaction *Transaction) MarshalJSON() ([]byte, error)
func (*Transaction) RecipientAddress ¶
func (transaction *Transaction) RecipientAddress() string
func (*Transaction) SenderAddress ¶
func (transaction *Transaction) SenderAddress() string
func (*Transaction) Timestamp ¶
func (transaction *Transaction) Timestamp() int64
func (*Transaction) Value ¶
func (transaction *Transaction) Value() uint64
func (*Transaction) VerifySignature ¶
func (transaction *Transaction) VerifySignature() error
type TransactionsPool ¶
type TransactionsPool struct {
// contains filtered or unexported fields
}
func NewTransactionsPool ¶
func (*TransactionsPool) AddTransaction ¶
func (pool *TransactionsPool) AddTransaction(transactionRequest *network.TransactionRequest, neighbors []network.Neighbor)
func (*TransactionsPool) Transactions ¶
func (pool *TransactionsPool) Transactions() []*network.TransactionResponse
func (*TransactionsPool) Validate ¶
func (pool *TransactionsPool) Validate(timestamp int64)
Click to show internal directories.
Click to hide internal directories.