Versions in this module Expand all Collapse all v0 v0.5.0 Aug 31, 2023 v0.4.0 Feb 24, 2023 Changes in this version + func ConfigFromViper(v *viper.Viper) *jsonrpchttp.Config + func EthELAddrFlag(v *viper.Viper, f *pflag.FlagSet) + func Flags(v *viper.Viper, f *pflag.FlagSet) + func GetEthELAddr(v *viper.Viper) string + type Client struct + func New(cfg *jsonrpchttp.Config) (*Client, error) + func NewFromClient(cli jsonrpc.Client) *Client + func (c *Client) BalanceAt(ctx context.Context, account gethcommon.Address, blockNumber *big.Int) (*big.Int, error) + func (c *Client) BlockByHash(ctx context.Context, hash gethcommon.Hash) (*gethtypes.Block, error) + func (c *Client) BlockByNumber(ctx context.Context, blockNumber *big.Int) (*gethtypes.Block, error) + func (c *Client) BlockNumber(ctx context.Context) (uint64, error) + func (c *Client) CallContract(ctx context.Context, msg geth.CallMsg, blockNumber *big.Int) ([]byte, error) + func (c *Client) CallContractAtHash(ctx context.Context, msg geth.CallMsg, blockHash gethcommon.Hash) ([]byte, error) + func (c *Client) ChainID(ctx context.Context) (*big.Int, error) + func (c *Client) CodeAt(ctx context.Context, account gethcommon.Address, blockNumber *big.Int) ([]byte, error) + func (c *Client) EstimateGas(ctx context.Context, msg geth.CallMsg) (uint64, error) + func (c *Client) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*geth.FeeHistory, error) + func (c *Client) FilterLogs(ctx context.Context, q geth.FilterQuery) ([]gethtypes.Log, error) + func (c *Client) HeaderByHash(ctx context.Context, hash gethcommon.Hash) (*gethtypes.Header, error) + func (c *Client) HeaderByNumber(ctx context.Context, blockNumber *big.Int) (*gethtypes.Header, error) + func (c *Client) Logger() logrus.FieldLogger + func (c *Client) NetworkID(ctx context.Context) (*big.Int, error) + func (c *Client) NonceAt(ctx context.Context, account gethcommon.Address, blockNumber *big.Int) (uint64, error) + func (c *Client) PeerCount(ctx context.Context) (uint64, error) + func (c *Client) PendingBalanceAt(ctx context.Context, account gethcommon.Address) (*big.Int, error) + func (c *Client) PendingCallContract(ctx context.Context, msg geth.CallMsg) ([]byte, error) + func (c *Client) PendingCodeAt(ctx context.Context, account gethcommon.Address) ([]byte, error) + func (c *Client) PendingNonceAt(ctx context.Context, account gethcommon.Address) (uint64, error) + func (c *Client) PendingStorageAt(ctx context.Context, account gethcommon.Address, key gethcommon.Hash) ([]byte, error) + func (c *Client) PendingTransactionCount(ctx context.Context) (uint, error) + func (c *Client) SendTransaction(ctx context.Context, tx *gethtypes.Transaction) error + func (c *Client) SetLogger(logger logrus.FieldLogger) + func (c *Client) StorageAt(ctx context.Context, account gethcommon.Address, key gethcommon.Hash, ...) ([]byte, error) + func (c *Client) SubscribeFilterLogs(ctx context.Context, _ geth.FilterQuery, _ chan<- gethtypes.Log) (geth.Subscription, error) + func (c *Client) SubscribeNewHead(ctx context.Context, ch chan<- *gethtypes.Header) (geth.Subscription, error) + func (c *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error) + func (c *Client) SuggestGasTipCap(ctx context.Context) (*big.Int, error) + func (c *Client) SyncProgress(ctx context.Context) (*geth.SyncProgress, error) + func (c *Client) TransactionByHash(ctx context.Context, hash gethcommon.Hash) (tx *gethtypes.Transaction, isPending bool, err error) + func (c *Client) TransactionCount(ctx context.Context, blockHash gethcommon.Hash) (uint, error) + func (c *Client) TransactionInBlock(ctx context.Context, blockHash gethcommon.Hash, index uint) (*gethtypes.Transaction, error) + func (c *Client) TransactionReceipt(ctx context.Context, txHash gethcommon.Hash) (*gethtypes.Receipt, error) + func (c *Client) TransactionSender(ctx context.Context, tx *gethtypes.Transaction, block gethcommon.Hash, ...) (gethcommon.Address, error)