Versions in this module Expand all Collapse all v0 v0.1.3 Jun 13, 2022 v0.1.2 May 5, 2022 Changes in this version + type ArgBig big.Int + func (a *ArgBig) UnmarshalText(input []byte) error + func (a ArgBig) MarshalText() ([]byte, error) + type ArgBytes []byte + func (b *ArgBytes) Bytes() []byte + func (b *ArgBytes) UnmarshalText(input []byte) error + func (b ArgBytes) MarshalText() ([]byte, error) + type ArgUint64 uint64 + func (b ArgUint64) MarshalText() ([]byte, error) + func (u *ArgUint64) Uint64() uint64 + func (u *ArgUint64) UnmarshalText(input []byte) error v0.1.1 Apr 25, 2022 Changes in this version type Address + func (a Address) Address() Address + func (a Address) Sign(hash []byte) ([]byte, error) type Log + func (l *Log) Copy() *Log type Receipt + func (r *Receipt) Copy() *Receipt type Transaction + func (t *Transaction) Copy() *Transaction v0.1.0 Mar 5, 2022 Changes in this version + var ZeroAddress = Address + var ZeroHash = Hash + func Ether(i uint64) *big.Int + func Gwei(i uint64) *big.Int + func Keccak256(v ...[]byte) []byte + type AccessEntry struct + Address Address + Storage []Hash + type AccessList []AccessEntry + func (a *AccessList) MarshalRLPTo(dst []byte) ([]byte, error) + func (a *AccessList) MarshalRLPWith(arena *fastrlp.Arena) (*fastrlp.Value, error) + func (a *AccessList) UnmarshalRLP(buf []byte) error + func (a *AccessList) UnmarshalRLPWith(v *fastrlp.Value) error + type Address [20]byte + func BytesToAddress(b []byte) Address + func HexToAddress(str string) Address + func (a *Address) UnmarshalText(b []byte) error + func (a Address) Bytes() []byte + func (a Address) MarshalText() ([]byte, error) + func (a Address) String() string + type Block struct + Difficulty *big.Int + ExtraData []byte + GasLimit uint64 + GasUsed uint64 + Hash Hash + Miner Address + Number uint64 + ParentHash Hash + ReceiptsRoot Hash + Sha3Uncles Hash + StateRoot Hash + Timestamp uint64 + Transactions []*Transaction + TransactionsHashes []Hash + TransactionsRoot Hash + Uncles []Hash + func (b *Block) Copy() *Block + func (b *Block) UnmarshalJSON(buf []byte) error + func (t *Block) MarshalJSON() ([]byte, error) + type BlockNumber int + const Earliest + const Latest + const Pending + func EncodeBlock(block ...BlockNumber) BlockNumber + func (b BlockNumber) Location() string + func (b BlockNumber) String() string + type BlockNumberOrHash interface + Location func() string + type CallMsg struct + Data []byte + From Address + Gas *big.Int + GasPrice uint64 + To *Address + Value *big.Int + func (c *CallMsg) MarshalJSON() ([]byte, error) + type Hash [32]byte + func BytesToHash(b []byte) Hash + func HexToHash(str string) Hash + func (h *Hash) UnmarshalText(b []byte) error + func (h Hash) Bytes() []byte + func (h Hash) Location() string + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + type Key interface + Address func() Address + Sign func(hash []byte) ([]byte, error) + type Log struct + Address Address + BlockHash Hash + BlockNumber uint64 + Data []byte + LogIndex uint64 + Removed bool + Topics []Hash + TransactionHash Hash + TransactionIndex uint64 + func (l *Log) MarshalJSON() ([]byte, error) + func (r *Log) UnmarshalJSON(buf []byte) error + type LogFilter struct + Address []Address + BlockHash *Hash + From *BlockNumber + To *BlockNumber + Topics [][]*Hash + func (l *LogFilter) MarshalJSON() ([]byte, error) + func (l *LogFilter) SetFromUint64(num uint64) + func (l *LogFilter) SetTo(b BlockNumber) + func (l *LogFilter) SetToUint64(num uint64) + func (lf *LogFilter) UnmarshalJSON(buf []byte) error + type Network uint64 + const Goerli + const Mainnet + const Rinkeby + const Ropsten + type Receipt struct + BlockHash Hash + BlockNumber uint64 + ContractAddress Address + CumulativeGasUsed uint64 + From Address + GasUsed uint64 + Logs []*Log + LogsBloom []byte + Status uint64 + TransactionHash Hash + TransactionIndex uint64 + func (r *Receipt) UnmarshalJSON(buf []byte) error + type Transaction struct + AccessList AccessList + BlockHash Hash + BlockNumber uint64 + ChainID *big.Int + From Address + Gas uint64 + GasPrice uint64 + Hash Hash + Input []byte + MaxFeePerGas *big.Int + MaxPriorityFeePerGas *big.Int + Nonce uint64 + R []byte + S []byte + To *Address + TxnIndex uint64 + Type TransactionType + V []byte + Value *big.Int + func (t *Transaction) GetHash() (hash Hash, err error) + func (t *Transaction) MarshalJSON() ([]byte, error) + func (t *Transaction) MarshalRLPTo(dst []byte) ([]byte, error) + func (t *Transaction) MarshalRLPWith(arena *fastrlp.Arena) (*fastrlp.Value, error) + func (t *Transaction) UnmarshalJSON(buf []byte) error + func (t *Transaction) UnmarshalRLP(buf []byte) error + func (t *Transaction) UnmarshalRLPWith(v *fastrlp.Value) error + type TransactionType int + const TransactionAccessList + const TransactionDynamicFee + const TransactionLegacy