Skip to main content

Overview

BuilderBid represents a block builder’s bid in Proposer-Builder Separation (PBS). Block builders compete through MEV-Boost relays to provide the most valuable block to validators, offering payment in exchange for block inclusion rights.

API

from

Creates a BuilderBid from various input types. Accepts hex strings, Uint8Arrays, and numeric types.
Example:
Throws: InvalidBuilderBidError if any field has invalid format or length.

getValue

Returns the bid value in wei.
Example:

verify

Verifies the builder’s BLS signature on the bid. Requires a BLS verification function to be provided.
Example:

toHex

Converts a BuilderBid to hex string format for RPC compatibility. Uses snake_case field names.
Example:

Types

BuilderBidType

The structured builder bid object.

BuilderBidLike

Flexible input type accepting hex strings and native types.

BuilderBidHex

RPC-compatible hex format with snake_case field names.

Errors

InvalidBuilderBidError

Thrown when bid construction or validation fails.
Common causes:
  • Invalid hash length (must be 32 bytes)
  • Invalid BLS pubkey length (must be 48 bytes)
  • Invalid signature length (must be 96 bytes)
  • Invalid address length (must be 20 bytes)
  • Non-object input

Field Sizes

See Also