Documentation
¶
Index ¶
- type ERC20
- type EVMClient
- func (e *EVMClient) GetERC20(tokenAddress string) (*ERC20, error)
- func (e *EVMClient) GetTx(hash string) (*Tx, error)
- func (c *EVMClient) ImportPrivateKey(pk string) (*EVMClient, error)
- func (e *EVMClient) ParseBridgeLogs(eventName string, bridgeAddress string, from int64) ([]*EventLog, error)
- func (e *EVMClient) SubmitEIP1559Tx(gasLimit int64, gasPrice int64, priorityFee int64, to *common.Address, ...) (*types.Transaction, error)
- type EventLog
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EVMClient ¶
type EVMClient struct {
API string
ChainId int
PrivateKey *ecdsa.PrivateKey
PublicKey common.Address
Client *ethclient.Client
MaxGasFee int64
MaxPriorityFee int64
}
func NewEVMClient ¶
NewEVMClient constructs the EVM client
func (*EVMClient) ImportPrivateKey ¶
ImportPrivateKey imports private key and generates corresponding public key
Click to show internal directories.
Click to hide internal directories.