Top bid websocket
Provides a stream of updates of the auction's current top bid. We run multiple auctions globally and forward top bids between them (see bid-forwarding.md). Two versions are available, we recommend using v2.
Both versions send ping frames, clients should respond with pong. Use persistent connections if possible. When closing connections please make sure to close the socket properly.
Note: at times, multiple parent blocks are reasonable to build on due to a split chain view. For these slots auction instances run multiple auctions. Each unique (slot, parent_hash) combination on a top bid update then refers to an independent auction with its own top bid.
v1
Streams out the auction's top bid: the highest bid known to an auction instance among bids submitted to that instance and those forwarded from other auction instances. This is the same bid v2 streams; v1 only differs in encoding (millisecond timestamps).
Endpoints (also available on the respective direct auction hosts):
ws://relay-builders-eu.ultrasound.money/ws/v1/top_bidws://relay-builders-us.ultrasound.money/ws/v1/top_bidws://relay-builders-jp.ultrasound.money/ws/v1/top_bid
It emits SSZ encoded data of the following (rust) type:
pub struct TopBidUpdate {
/// Millisecond timestamp at which this became the eligible top bid
pub timestamp: u64,
pub slot: u64,
pub block_number: u64,
pub block_hash: B256,
pub parent_hash: B256,
pub builder_pubkey: BlsPublicKey,
pub fee_recipient: Address,
pub value: U256,
}
You can find an example client here: https://github.com/ultrasoundmoney/top-bid-websocket-client
v2
Streams out the auction's top bid: the highest bid known to an auction instance among bids submitted to that instance and those forwarded from other auction instances. This is the bid the relay will deliver to the proposer at the reply deadline, so it is the one to compete with. See bid-forwarding.md for how bids from different instances are ranked.
v2 timestamps have nanosecond granularity, up from millisecond in v1.
Endpoints (also available on the respective direct auction hosts):
ws://relay-builders-eu.ultrasound.money/ws/v2/top_bidws://relay-builders-us.ultrasound.money/ws/v2/top_bidws://relay-builders-jp.ultrasound.money/ws/v2/top_bid
It emits SSZ encoded data of the following (rust) type:
pub struct TopBidUpdateV2 {
/// Nanosecond timestamp at which this became the eligible top bid in an auction instance
pub timestamp: u64,
pub slot: u64,
pub block_number: u64,
pub block_hash: B256,
pub parent_hash: B256,
pub builder_pubkey: BlsPublicKey,
pub fee_recipient: Address,
pub value: U256,
}
If <1ms latency matters to you and you are co-located with us, both websocket versions are available directly from the auction server as well. Reach out on @ultrasoundrelay for direct connection details.