diff --git a/pkg/mev/bloxroute_submit_bundle.go b/pkg/mev/bloxroute_submit_bundle.go index 57ce151..0454ac8 100644 --- a/pkg/mev/bloxroute_submit_bundle.go +++ b/pkg/mev/bloxroute_submit_bundle.go @@ -24,6 +24,7 @@ const ( BuilderAll Builder = "all" ) +// BloxrouteSubmitBundle https://docs.bloxroute.com/apis/mev-solution/bundle-submission func BloxrouteSubmitBundle( // nolint: cyclop ctx context.Context, c *http.Client, auth, endpoint string, param *BLXRSubmitBundleParams, options ...BloxrouteSubmitBundleOption, @@ -122,6 +123,7 @@ func WithBuilderRsyncBuilder() BloxrouteSubmitBundleOption { } } +// WithBuilderAll still need to use the WithBuilderFlashbot to submit to flashbots. func WithBuilderAll() BloxrouteSubmitBundleOption { return func(bsbo *blxrSubmitBundleOptions) { bsbo.builderAll = true diff --git a/pkg/mev/send_bundle.go b/pkg/mev/send_bundle.go index 615bfb6..b2194ef 100644 --- a/pkg/mev/send_bundle.go +++ b/pkg/mev/send_bundle.go @@ -14,6 +14,8 @@ import ( "github.com/ethereum/go-ethereum/crypto" ) +// SendBundle https://docs.flashbots.net/flashbots-auction/advanced/rpc-endpoint#eth_sendbundle, +// https://beaverbuild.org/docs.html, https://rsync-builder.xyz/docs func SendBundle( // nolint: cyclop ctx context.Context, c *http.Client, endpoint string, param *SendBundleParams, options ...SendBundleOption, ) (SendBundleResponse, error) {