Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorStackHandler ¶
ErrorStackHandler is a log handler that prints the stack trace of an error
func PrintMessage ¶ added in v0.1.1
PrintMessage prints a message to the console (i.e. stdout)
Types ¶
type Transaction ¶
type Transaction interface { BlockNumber() BigInt Hash() Hash From() *Address To() *Address Value() BigInt Timestamp() uint64 Data() []byte }
Transaction represents an Ethereum transaction.
func WrapTransaction ¶
func WrapTransaction(txn *types.Transaction, blockNumber BigInt, from *common.Address, timestamp uint64) Transaction
func WrapTransactionWithBlock ¶
func WrapTransactionWithBlock(txn *types.Transaction, block *types.Block, sender *common.Address) Transaction
type Transactions ¶
type Transactions = []Transaction
type TxnRequest ¶
type TxnRequest struct { PrivateKey *ecdsa.PrivateKey To *Address Value BigInt Data []byte GasLimit uint64 GasPrice BigInt }
TxnRequest represents a transaction to be submitted for execution
type WrappedTransaction ¶
type WrappedTransaction struct { *types.Transaction // contains filtered or unexported fields }
WrappedTransaction is a wrapper around geth Transaction for convenience
func (*WrappedTransaction) BlockNumber ¶
func (t *WrappedTransaction) BlockNumber() BigInt
func (*WrappedTransaction) From ¶
func (t *WrappedTransaction) From() *Address
func (*WrappedTransaction) Timestamp ¶
func (t *WrappedTransaction) Timestamp() uint64
Click to show internal directories.
Click to hide internal directories.