Versions in this module Expand all Collapse all v0 v0.0.2 Jul 8, 2026 Changes in this version + const PreferencesNamespace + var DomainRequestAuth = phase0.DomainType + var ErrInvalidRequestAuthSignature = errors.New("invalid request auth signature") + var ErrNilRequestAuthMessage = errors.New("request auth message is nil") + var ErrNilSignedRequestAuth = errors.New("signed request auth is nil") + func VerifyRequestAuth(signed *epbstypes.SignedRequestAuthV1, validatorPubkey phase0.BLSPubKey, ...) error + type BlockBroadcaster interface + SubmitProposal func(ctx context.Context, opts *api.SubmitProposalOpts) error + type BuilderPreferencesStore struct + func NewBuilderPreferencesStore() *BuilderPreferencesStore + func (s *BuilderPreferencesStore) Get(pubkey phase0.BLSPubKey) (phase0.Gwei, bool) + func (s *BuilderPreferencesStore) GetAll() map[phase0.BLSPubKey]phase0.Gwei + func (s *BuilderPreferencesStore) GetOrDefault(pubkey phase0.BLSPubKey) phase0.Gwei + func (s *BuilderPreferencesStore) Set(pubkey phase0.BLSPubKey, maxExecutionPayment phase0.Gwei) + func (s *BuilderPreferencesStore) SetPersistence(ctx context.Context, stateDB *db.Database, log logrus.FieldLogger) + func (s *BuilderPreferencesStore) Stop() + type EventBroadcaster interface + BroadcastBuilderAPIGetBidDelivered func(slot uint64, blockHash, blockValue string) + BroadcastBuilderAPIGetBidReceived func(slot uint64, parentHash, pubkey string) + BroadcastBuilderAPISubmitBlockDelivered func(slot uint64, blockHash string) + BroadcastBuilderAPISubmitBlockReceived func(slot uint64, blockHash string) + type GetExecutionPayloadBidResponse struct + Data *eth2all.SignedExecutionPayloadBid + Version string + type Handler struct + func NewHandler(cfg *config.BuilderAPIConfig, log logrus.FieldLogger, chainSvc chain.Service, ...) *Handler + func (h *Handler) BidsRequested() uint64 + func (h *Handler) BlocksAccepted() uint64 + func (h *Handler) GetBuilderPreferencesStore() *BuilderPreferencesStore + func (h *Handler) HandleGetExecutionPayloadBid(w http.ResponseWriter, r *http.Request) + func (h *Handler) HandleSubmitBeaconBlock(w http.ResponseWriter, r *http.Request) + func (h *Handler) HandleSubmitBuilderPreferences(w http.ResponseWriter, r *http.Request) + func (h *Handler) SetBlockBroadcaster(b BlockBroadcaster) + func (h *Handler) SetBuilderIndex(index uint64) + func (h *Handler) SetEnabled(enabled bool) + func (h *Handler) SetEventBroadcaster(b EventBroadcaster) + func (h *Handler) SetProposerPreferencesStore(store *memstore.Store[phase0.Slot, *gloasspec.SignedProposerPreferences]) + func (h *Handler) SetRevealService(rs *payload_bidder.RevealService) + type PreferencesCodec struct + func (PreferencesCodec) DecodeKey(key string) (phase0.BLSPubKey, error) + func (PreferencesCodec) DecodeValue(value []byte) (phase0.Gwei, error) + func (PreferencesCodec) EncodeKey(pubkey phase0.BLSPubKey) string + func (PreferencesCodec) EncodeValue(maxExecutionPayment phase0.Gwei) ([]byte, error)