Documentation ¶
Index ¶
- func LatestBlock() uint64
- func StartListenLatestBlock(ethereumClients []*EthereumClient, watchInterval time.Duration)
- func StartListeningNonce(ethereumClients []*EthereumClient, addressNonce *model.AddressNonce, ...)
- type BundlerClient
- type EthereumClient
- func (c *EthereumClient) BuildTransferEthDynamicTx(chainID *big.Int, to common.Address, ...) *types.Transaction
- func (c *EthereumClient) BuildTransferEthLegacyTx(to common.Address, gasPrice, value *big.Int, nonce uint64) *types.Transaction
- func (e *EthereumClient) ETHClient() *ethclient.Client
- func (e *EthereumClient) GETHClient() *gethclient.Client
- func (e *EthereumClient) SendTx(ctx context.Context, signedTx *types.Transaction) error
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
Click to show internal directories.
Click to hide internal directories.