ultra sound relay docs

Data API

The data API is available both local, through builder subdomains as found in builder-getting-started.md, and global, through the relay-analytics. Block submissions and their adjusted counterparts are available locally and are aggregated with some delay into a single, global, relay-analytics view. All other relay data API resources only exist globally.

# eg local rbx
https://relay-builders-eu.ultrasound.money/relay/v1/data/bidtraces/builder_blocks_received

# eg global
https://relay-analytics.ultrasound.money/relay/v1/data/bidtraces/builder_blocks_received

For bid submission records such as builder_blocks_received, timestamp, timestamp_ms and timestamp_ns refer to when the relay received the bid submission (received_at internally). This is distinct from top bid websocket update timestamps, which describe when a bid became eligible/top after decoding and auction-state comparison.

/relay/v1/data/bidtraces/builder_blocks_received

Replicates getReceivedBids from the relay specs.

Query parameters, at least one of the filters is required:

ParameterDescription
slotA specific slot
block_hashA specific block hash
block_numberA specific execution block number
builder_pubkeyAll submissions from one builder pubkey
limitMax rows returned, default and maximum 500. Only applies when filtering by builder_pubkey alone; slot, hash and number queries return all matching rows

Results are ordered by slot descending, most recently inserted first. optimistic_submission is not part of the spec schema; it is a de-facto extension also returned by the Flashbots relay, which our response matches key-for-key.

[
  {
    "slot": "3635889",
    "parent_hash": "0x11629d94dc6f4f0cc5efc530b055f41c5cbe5c7382f0ac775fee112a14d49418",
    "block_hash": "0x52753878bb890715f1f8b91e18d65cdf0bd2d2b722126c87aae59a215df66081",
    "builder_pubkey": "0x80ff91f2b5db3628ddc2863d3317e5baca972c32e86c1b4b9bc98c3424c8e36fd318d105c1fcd99f94f898a15d13cb8a",
    "proposer_pubkey": "0xa1e27f5820549640bc3ae51127a3bcfc18f3ed77e0565baa2346ef178f38542dae5a0a8057ded413a6733f00df3e3731",
    "proposer_fee_recipient": "0x09a43fd8ff63b79035f3c3bbe2e95c943fc0ed48",
    "gas_limit": "60000000",
    "gas_used": "58058609",
    "value": "6983905659119621",
    "num_tx": "40",
    "block_number": "3350783",
    "timestamp": "1785844068",
    "timestamp_ms": "1785844068170",
    "optimistic_submission": true
  }
]

/relay/v2/data/bidtraces/builder_blocks_received

Identical to v1, same hosts, same query parameters, same semantics, with one added response field:

FieldDescription
timestamp_nsNanosecond unix timestamp of when the relay received the bid submission. Same instant timestamp and timestamp_ms truncate. null for submissions recorded before the field existed
[
  {
    "slot": "3635889",
    "...": "...",
    "timestamp": "1785844068",
    "timestamp_ms": "1785844068170",
    "timestamp_ns": "1785844068170783602",
    "optimistic_submission": true
  }
]

The v2 API is not part of the relay specs and has not stabilized yet; we may make further changes to it.

/relay/v1/data/bidtraces/proposer_payload_delivered

Replicates getDeliveredPayloads from the relay specs.

/relay/v1/data/validator_registration

Replicates getValidatorRegistration from the relay specs.

/ultrasound/v1/data/registration

When a proposer registration was last received. Complements the standard validator_registration endpoint, which does not expose the receive time of repeated identical registrations. See recent-registration.md.

/ultrasound/v1/data/adjustments

Non-standard. Pre-adjustment values for adjusted bids. See bid-adjustment.md.

/ultrasound/v1/data/disallow

Non-standard. The OFAC disallow list the relay currently filters against, as a JSON array of execution addresses. Takes no parameters.

["0x098B716B8Aaf21512996dC57EB0615e2383E2f96", "0xa0e1c89Ef1a489c9C7dE96311eD5Ce5D32c20E4B", "..."]

/relay/v1/data/merged_blocks

Not part of the relay specs. Block merging results for a single slot, matching the shape Titan serves at the same path.

ParameterDescription
slotRequired, a specific slot

Returns one entry per merged block we built for that slot, not only the one delivered, ordered by proposer_value descending. Slots we did not merge return [].

FieldDescription
original_block_hashHash of the base block before merging
block_hashHash of the resulting merged block
original_valueValue of the base block before merging
proposer_valueValue paid to the proposer for the merged block
total_merged_valueValue added by the merged in orders, the sum of every contribution
base_builder_revenueThe base block builder's share of the merged value
relay_revenueThe relay's share of the merged value
original_tx_count, merged_tx_countTransaction count before and after merging
original_blob_count, merged_blob_countBlob count before and after merging
original_gas_used, merged_gas_usedGas used before and after merging
builder_inclusionsContributing builders, keyed by coinbase. contribution is the value they added, revenue their share of it, txs the transaction hashes appended to the base block
[
  {
    "slot": "15184509",
    "block_number": "25946559",
    "original_block_hash": "0x292fc1ec652098c5e44cf1b584c53d8c14bf5a850ca5816fdfb070a90a13a3f7",
    "block_hash": "0x9fb4e6dd48d7f9905f596e3287c5f22f029056730ece34361e6e29cd167984f5",
    "original_value": "11597027056460525",
    "proposer_value": "11628962247064035",
    "total_merged_value": "143878148154040",
    "base_builder_revenue": "31935190603510",
    "relay_revenue": "31935190603510",
    "original_tx_count": "380",
    "merged_tx_count": "386",
    "original_blob_count": "4",
    "merged_blob_count": "4",
    "original_gas_used": 36764446,
    "merged_gas_used": 37242697,
    "builder_inclusions": {
      "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97": {
        "contribution": "143878148154040",
        "revenue": "31935190603510",
        "txs": [
          "0x84516dcb997ba8b0155be3b078669d9371c3836244eaac57e8a811e859fb8bc9",
          "0xbd5d00770d957be3a1bfe7ce2988421ce09b4f5f9b14ff0c3b7bc7bdfe5f7e3e"
        ]
      }
    }
  }
]

/relay/v1/data/merged_txs

Not part of the relay specs. Whether a transaction offered for merging made it into the merged block we delivered for its slot, and if not, why.

ParameterDescription
slotRequired, a specific slot
tx_hashRequired, the transaction hash

Only slots where we delivered a merged block have records, and only for transactions offered as mergeable orders. The base block's own transactions, slots without a delivered merged block and transactions we never received return 404.

FieldDescription
mergedWhether the transaction is in the delivered merged block
block_hashThe delivered merged block, only when merged
base_block_hashThe base block of the delivered merged block, only when not merged
reasonWhy it was left out, only when not merged
ReasonDescription
zero_paymentThe order paid nothing to the block's coinbase
out_of_spaceNot enough gas or blob space left in the block
replacedA later submission from the builder dropped this latest-only order
invalidThe order failed simulation, for example a transaction reverted that was not allowed to. Also covers transactions touching an OFAC-sanctioned address when the proposer filters
duplicateThe transaction was already in the block
{
  "slot": "15371904",
  "tx_hash": "0x453791119c33984392a5a412648976823f1a545d8429a77ca816c1e6901f0ef0",
  "block_hash": "0xa6d2b3f79bb016b4dce7adc289912ce08d59a482d04b19439ae3fce242df5250",
  "merged": true
}
{
  "slot": "15371904",
  "tx_hash": "0x0599a38fd04fcd1220455f163f39d7917c4a1f8ffa08d7c52d5298127531a833",
  "base_block_hash": "0xb1de5abb9c01a6648866e3e8ab74ee3f13f91620e4059ecb495f458f32ce1663",
  "merged": false,
  "reason": "duplicate"
}