builder

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package builder implements a module for bundlers to act as MEV searchers and send batches to the EntryPoint via a Block Builder API that supports eth_sendBundle.

Index

Constants

This section is empty.

Variables

View Source
var (
	// CompatibleChainIDs is a set of chainIDs that support the Block Builder API.
	CompatibleChainIDs = mapset.NewSet(config.EthereumChainID.Uint64(), config.GoerliChainID.Uint64())
)

Functions

This section is empty.

Types

type BuilderClient

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

BuilderClient provides a connection to a block builder API to enable UserOperations to be sent through the mev-boost process.

func New

func New(
	eoa *signer.EOA,
	eth *ethclient.Client,
	fb *flashbotsrpc.FlashbotsRPC,
	beneficiary common.Address,
	blocksInTheFuture int,
) *BuilderClient

New returns an instance of a BuilderClient with modules to send UserOperation bundles via the mev-boost process.

func (*BuilderClient) SendUserOperation

func (b *BuilderClient) SendUserOperation() modules.BatchHandlerFunc

SendUserOperation returns a BatchHandler that is used by the Bundler to send batches to a block builder that supports eth_callBundle and eth_sendBundle.

Jump to

Keyboard shortcuts

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