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) Big() *big.Int + func (a *ArgBig) UnmarshalText(input []byte) error type Eth + func (e *Eth) FeeHistory(from, to ethgo.BlockNumber) (*FeeHistory, error) + type FeeHistory struct + BaseFee []*big.Int + GasUsedRatio []float64 + OldestBlock *big.Int + Reward [][]*big.Int + func (f *FeeHistory) UnmarshalJSON(data []byte) error v0.1.1 Apr 25, 2022 v0.1.0 Mar 5, 2022 Changes in this version + type Client struct + func NewClient(addr string, opts ...ConfigOption) (*Client, error) + func (c *Client) Call(method string, out interface{}, params ...interface{}) error + func (c *Client) Close() error + func (c *Client) Debug() *Debug + func (c *Client) Eth() *Eth + func (c *Client) Net() *Net + func (c *Client) SetMaxConnsLimit(count int) + func (c *Client) Subscribe(method string, callback func(b []byte)) (func() error, error) + func (c *Client) SubscriptionEnabled() bool + func (c *Client) Web3() *Web3 + type Config struct + type ConfigOption func(*Config) + func WithHeaders(headers map[string]string) ConfigOption + type Debug struct + func (d *Debug) TraceTransaction(hash ethgo.Hash) (*TransactionTrace, error) + type Eth struct + func (e *Eth) Accounts() ([]ethgo.Address, error) + func (e *Eth) BlockNumber() (uint64, error) + func (e *Eth) Call(msg *ethgo.CallMsg, block ethgo.BlockNumber) (string, error) + func (e *Eth) ChainID() (*big.Int, error) + func (e *Eth) EstimateGas(msg *ethgo.CallMsg) (uint64, error) + func (e *Eth) EstimateGasContract(bin []byte) (uint64, error) + func (e *Eth) GasPrice() (uint64, error) + func (e *Eth) GetBalance(addr ethgo.Address, blockNumber ethgo.BlockNumberOrHash) (*big.Int, error) + func (e *Eth) GetBlockByHash(hash ethgo.Hash, full bool) (*ethgo.Block, error) + func (e *Eth) GetBlockByNumber(i ethgo.BlockNumber, full bool) (*ethgo.Block, error) + func (e *Eth) GetCode(addr ethgo.Address, block ethgo.BlockNumberOrHash) (string, error) + func (e *Eth) GetFilterChanges(id string) ([]*ethgo.Log, error) + func (e *Eth) GetFilterChangesBlock(id string) ([]ethgo.Hash, error) + func (e *Eth) GetLogs(filter *ethgo.LogFilter) ([]*ethgo.Log, error) + func (e *Eth) GetNonce(addr ethgo.Address, blockNumber ethgo.BlockNumberOrHash) (uint64, error) + func (e *Eth) GetStorageAt(addr ethgo.Address, slot ethgo.Hash, block ethgo.BlockNumberOrHash) (ethgo.Hash, error) + func (e *Eth) GetTransactionByHash(hash ethgo.Hash) (*ethgo.Transaction, error) + func (e *Eth) GetTransactionReceipt(hash ethgo.Hash) (*ethgo.Receipt, error) + func (e *Eth) NewBlockFilter() (string, error) + func (e *Eth) NewFilter(filter *ethgo.LogFilter) (string, error) + func (e *Eth) SendRawTransaction(data []byte) (ethgo.Hash, error) + func (e *Eth) SendTransaction(txn *ethgo.Transaction) (ethgo.Hash, error) + func (e *Eth) UninstallFilter(id string) (bool, error) + type Net struct + func (n *Net) Listening() (bool, error) + func (n *Net) PeerCount() (uint64, error) + func (n *Net) Version() (uint64, error) + type StructLogs struct + Depth int + Gas int + GasCost int + Memory []string + Op string + Pc int + Stack []string + Storage map[string]string + type TransactionTrace struct + Gas uint64 + ReturnValue string + StructLogs []*StructLogs + type Web3 struct + func (w *Web3) ClientVersion() (string, error) + func (w *Web3) Sha3(val []byte) ([]byte, error)