Versions in this module Expand all Collapse all v0 v0.0.10 Sep 22, 2022 v0.0.9 Jul 21, 2022 Changes in this version type Receipt + Status uint64 v0.0.8 Dec 20, 2021 v0.0.7 Aug 12, 2021 Changes in this version + const Earliest + const Latest + const Pending + func Ether(i uint64) *big.Int + func Gwei(i uint64) *big.Int + type Address [20]byte + func HexToAddress(str string) Address + func (a *Address) UnmarshalText(b []byte) error + 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) UnmarshalJSON(buf []byte) error + func (t *Block) MarshalJSON() ([]byte, error) + type BlockNumber int + func EncodeBlock(block ...BlockNumber) BlockNumber + func (b BlockNumber) String() string + type CallMsg struct + Data []byte + From Address + GasPrice uint64 + To *Address + Value *big.Int + func (c *CallMsg) MarshalJSON() ([]byte, error) + type Hash [32]byte + func HexToHash(str string) Hash + func (h *Hash) UnmarshalText(b []byte) error + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + 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) + 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 + To Address + TransactionHash Hash + TransactionIndex uint64 + func (r *Receipt) UnmarshalJSON(buf []byte) error + type Transaction struct + BlockHash Hash + BlockNumber uint64 + From Address + Gas uint64 + GasPrice uint64 + Hash Hash + Input []byte + Nonce uint64 + R []byte + S []byte + To *Address + TxnIndex uint64 + V []byte + Value *big.Int + func (t *Transaction) MarshalJSON() ([]byte, error) + func (t *Transaction) MarshalRLP() []byte + func (t *Transaction) MarshalRLPWith(arena *fastrlp.Arena) *fastrlp.Value + func (t *Transaction) UnmarshalJSON(buf []byte) error v0.0.6 Aug 12, 2021 v0.0.5 Aug 12, 2021 v0.0.4 Aug 12, 2021 v0.0.3 Aug 12, 2021