Documentation ¶
Index ¶
- type EthereumClient
- func (c *EthereumClient) GetBlockReceipts(ctx context.Context, blockHash common.Hash, txs []evmClient.RPCTransaction, ...) ([]*evmClient.RosettaTxReceipt, error)
- func (c *EthereumClient) GetNativeTransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int) (uint64, error)
- func (c *EthereumClient) GetTransactionReceipt(ctx context.Context, tx *evmClient.LoadedTransaction) (*evmClient.RosettaTxReceipt, error)
- func (c *EthereumClient) ParseOps(tx *evmClient.LoadedTransaction) ([]*RosettaTypes.Operation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthereumClient ¶
type EthereumClient struct { // Use embedding for inheritance. So all the methods of the SDKClient // are instantly available on EthereumClient. evmClient.SDKClient }
func NewEthereumClient ¶
func NewEthereumClient(cfg *configuration.Configuration) (*EthereumClient, error)
NewEthereumClient creates a eth client that can interact with Ethereum network.
func (*EthereumClient) GetBlockReceipts ¶
func (c *EthereumClient) GetBlockReceipts( ctx context.Context, blockHash common.Hash, txs []evmClient.RPCTransaction, baseFee *big.Int, ) ([]*evmClient.RosettaTxReceipt, error)
func (*EthereumClient) GetNativeTransferGasLimit ¶
func (c *EthereumClient) GetNativeTransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int) (uint64, error)
GetNativeTransferGasLimit is Ethereum's custom implementation of estimating gas.
func (*EthereumClient) GetTransactionReceipt ¶
func (c *EthereumClient) GetTransactionReceipt( ctx context.Context, tx *evmClient.LoadedTransaction, ) (*evmClient.RosettaTxReceipt, error)
func (*EthereumClient) ParseOps ¶
func (c *EthereumClient) ParseOps( tx *evmClient.LoadedTransaction, ) ([]*RosettaTypes.Operation, error)
Click to show internal directories.
Click to hide internal directories.