Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Hash string `json:"hash"` To []byte `json:"to"` From []byte `json:"from"` Nonce uint64 `json:"nonce"` Amount *big.Int `json:"amount"` GasLimit uint64 `json:"gasLimit"` GasPrice *big.Int `json:"gasPrice"` Data []byte `json:"data"` CheckNonce bool `json:"checkNonce"` Success bool `json:"success"` GasUsed uint64 `json:"gasUsed"` }
Message is the immutable transaction
type Transaction ¶
type Transaction struct { From []byte To []byte TxHashFunc func(rawTx interface{}) []byte TxHexHashSignedFunc func(rawTx interface{}) string SignFunc func(sig []byte) error // contains filtered or unexported fields }
func NewTransaction ¶
func NewTransaction(rawTx interface{}, From []byte) *Transaction
func (*Transaction) Hash ¶
func (t *Transaction) Hash() []byte
func (*Transaction) Hex ¶
func (t *Transaction) Hex() string
func (*Transaction) RawTx ¶
func (t *Transaction) RawTx() interface{}
func (*Transaction) Sender ¶
func (t *Transaction) Sender() []byte
func (*Transaction) SetRawTx ¶
func (t *Transaction) SetRawTx(rawTx interface{})
func (*Transaction) WithSign ¶
func (t *Transaction) WithSign(sig []byte) error
Click to show internal directories.
Click to hide internal directories.