client

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatestBlock added in v0.1.11

func LatestBlock() uint64

func StartListenLatestBlock added in v0.1.11

func StartListenLatestBlock(ethereumClients []*EthereumClient, watchInterval time.Duration)

func StartListeningNonce added in v0.1.11

func StartListeningNonce(ethereumClients []*EthereumClient, addressNonce *model.AddressNonce, watchInterval time.Duration)

Types

type BundlerClient

type BundlerClient struct {
	// contains filtered or unexported fields
}

func NewBundlerClient

func NewBundlerClient() *BundlerClient

func (BundlerClient) SendBundle

func (b BundlerClient) SendBundle(ctx context.Context, endpoint string, headers map[string]string, request model.RPCRequest) (string, error)

type EthereumClient

type EthereumClient struct {
	// contains filtered or unexported fields
}

func NewEthereumClient

func NewEthereumClient(endpoint string) (*EthereumClient, error)

func (*EthereumClient) BuildTransferEthDynamicTx

func (c *EthereumClient) BuildTransferEthDynamicTx(chainID *big.Int, to common.Address, maxPriorityFeePerGas, maxFeePerGas, value *big.Int, nonce uint64) *types.Transaction

https://docs.alchemy.com/docs/maxpriorityfeepergas-vs-maxfeepergas

func (*EthereumClient) BuildTransferEthLegacyTx

func (c *EthereumClient) BuildTransferEthLegacyTx(to common.Address, gasPrice, value *big.Int, nonce uint64) *types.Transaction

func (*EthereumClient) ETHClient

func (e *EthereumClient) ETHClient() *ethclient.Client

func (*EthereumClient) GETHClient added in v0.3.0

func (e *EthereumClient) GETHClient() *gethclient.Client

func (*EthereumClient) SendTx

func (e *EthereumClient) SendTx(ctx context.Context, signedTx *types.Transaction) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL