Documentation ¶
Index ¶
- type CommonTransaction
- type EVMClient
- func (c *EVMClient) BaseFee() (*big.Int, error)
- func (c *EVMClient) CallContext(ctx context.Context, target interface{}, rpcMethod string, args ...interface{}) error
- func (c *EVMClient) CallContract(ctx context.Context, callArgs map[string]interface{}, blockNumber *big.Int) ([]byte, error)
- func (c *EVMClient) FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, ...) ([]types.Log, error)
- func (c *EVMClient) From() common.Address
- func (c *EVMClient) GetTransactionByHash(h common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (c *EVMClient) LatestBlock() (*big.Int, error)
- func (c *EVMClient) LockNonce()
- func (c *EVMClient) PendingCallContract(ctx context.Context, callArgs map[string]interface{}) ([]byte, error)
- func (c *EVMClient) RelayerAddress() common.Address
- func (c *EVMClient) SendRawTransaction(ctx context.Context, tx []byte) error
- func (c *EVMClient) SignAndSendTransaction(ctx context.Context, tx CommonTransaction) (common.Hash, error)
- func (c *EVMClient) SubscribePendingTransactions(ctx context.Context, ch chan<- common.Hash) (*rpc.ClientSubscription, error)
- func (c *EVMClient) UnlockNonce()
- func (c *EVMClient) UnsafeIncreaseNonce() error
- func (c *EVMClient) UnsafeNonce() (*big.Int, error)
- func (c *EVMClient) WaitAndReturnTxReceipt(h common.Hash) (*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonTransaction ¶
type EVMClient ¶
func NewEVMClient ¶
func NewEVMClient(url string, privateKey *ecdsa.PrivateKey) (*EVMClient, error)
NewEVMClient creates a client for EVMChain with provided private key.
func (*EVMClient) CallContext ¶
func (*EVMClient) CallContract ¶
func (*EVMClient) FetchEventLogs ¶
func (*EVMClient) GetTransactionByHash ¶
func (*EVMClient) LatestBlock ¶
LatestBlock returns the latest block from the current chain
func (*EVMClient) PendingCallContract ¶
func (*EVMClient) RelayerAddress ¶
func (*EVMClient) SendRawTransaction ¶
SendRawTransaction accepts rlp-encode of signed transaction and sends it via RPC call
func (*EVMClient) SignAndSendTransaction ¶
func (*EVMClient) SubscribePendingTransactions ¶
func (*EVMClient) UnlockNonce ¶
func (c *EVMClient) UnlockNonce()
func (*EVMClient) UnsafeIncreaseNonce ¶
Click to show internal directories.
Click to hide internal directories.