Documentation ¶
Index ¶
- type EvmClient
- func (c *EvmClient) BlockTxsByHeight(ctx context.Context, blk *big.Int) ([]*types.Receipt, error)
- func (c *EvmClient) ChainID() *big.Int
- func (c *EvmClient) LatestBlockHeight(ctx context.Context) (*big.Int, error)
- func (c *EvmClient) ListenToTxs(ctx context.Context, txResult chan interface{}, startBlk *big.Int)
- func (c *EvmClient) MustGetEvmTxSender(tx *types.Transaction) string
- type EvmClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvmClient ¶
type EvmClient struct { *ethclient.Client GEthClient *gethclient.Client RPCClient *rpc.Client // contains filtered or unexported fields }
func NewEvmClient ¶
NewEvmClient creates a new EvmClient.
func (*EvmClient) BlockTxsByHeight ¶
BlockTxsByHeight retrieves the receipts of all transaction in a block given its height.
func (*EvmClient) LatestBlockHeight ¶
LatestBlockHeight returns the latest block height from the current chain.
func (*EvmClient) ListenToTxs ¶
func (*EvmClient) MustGetEvmTxSender ¶
func (c *EvmClient) MustGetEvmTxSender(tx *types.Transaction) string
type EvmClientConfig ¶
func DefaultConfig ¶
func DefaultConfig() EvmClientConfig
func (EvmClientConfig) IsValid ¶
func (cfg EvmClientConfig) IsValid() (bool, error)
IsValid checks if the current EvmClientConfig is valid.
Click to show internal directories.
Click to hide internal directories.