Searcher

Introduction

Searcher can subscribe Private Mempool to execute the backrun strategy, and then send the backrun bundles to BlockRazor RPC to obtain benefits via backrun auction.

In addition, Searcher can also skip bundle subscription and send the raw bundle directly to BlockRazor RPC. With the high-performance network, BlockRazor can forward the bundle to mainstream builders with extremely low latency, eliminating the need for repeated integrations with each builder.

Auction Mechanism

bundle flow

Bidding timing

Searcher can continuously submit bundles (repeated submissions are not allowed), and BlockRazor RPC will choose the best time to submit winning bundles to top builders. If the bundle has been included in the block or has expired, it will stop being disclosed in the data stream.

Auction rules

BlockRazor RPC conducts English bidding based on the bid value, of which the receipt and distribution(clickarrow-up-right to see details) is realized via smart contract.

Bidding method

When constructing a backrun transaction, the backrun contract could call the proxyBid method of the bidding proxy contract as follows.

The biding proxy contract address (proxyBidContract), refundAddress and refundCfg can be obtained from Private Mempool and msg.value(the biding value) must be greater than 0.

The correctness of the parameters will be strictly verified by BlockRazor RPC. Please do not directly transfer to the refundAddress and the address of bidding proxy contract or perform other operations that may cause changes to the balance of the above account.

RPC Endpoint

circle-info

Please keep the domain for subscribing to the bundle consistent with the domain for sending the bundle. For example, if subscribing to https://jp-bscscutum.blockrazor.xyz/stream, then send the bundle to https://jp-bscscutum.blockrazor.xyz

Region
Endpoint

Tokyo

https://jp-bscscutum.blockrazor.xyz

New York

https://us-bscscutum.blockrazor.xyz

Frankfurt

https://ger-bscscutum.blockrazor.xyz

Dublin

https://ire-bscscutum.blockrazor.xyz

Request Parameters

Bundle

Parameters
Mandatory
Format
Example
Remark

hash

optional

hash

"0xa06b……f7e8ec"

The bundle hash received from the data stream, that is, the object being backrun

txs

mandatory

[]bytes

[ "0xf84a……e54284" ]

raw tx. If the hash is empty, up to 50 raw txs are allowed to set up, and if the hash is not empty, only 1 raw tx is allowed to set up

revertingTxHashes

optional

[]hash

["0x1f23……0abb1e"]

Transactions that allow to be reverted, a subset of txs

maxBlockNumber

optional

uint64

39177941

The maximum block number for the bundle to be valid, with the default set to the current block number + 100

optional

See hint for details

refundAddress

optional

address

"0x9abae1b279a4be25aeae49a33e807cdd3ccffa0c"

If there is a field with a value of true in hint, this field should be set to EOA.

hint

The disclosure for the transaction data in field txsis set by hint. If it is set to true, it will be regarded as disclosing the corresponding transaction field. If it is false, it will be regarded as not disclosing the corresponding transaction field. If it is not set, the default is false.

Parameters
Mandatory
Format
Example
Remark

hash

optional

bool

true

transaction hash

from

optional

bool

false

sender of the transaction

to

optional

bool

true

receiver of the transaction

value

optional

bool

false

value being transacted

nonce

optional

bool

false

nonce

calldata

optional

bool

true

calldata

functionSelector

optional

bool

true

the first 4 bytes of the contract function signature hash

logs

optional

bool

true

event logs emitted during transaction execution(this field synchronously sets whether to disclose state changes in the state object)

Request Example

Raw Bundle

There is no backrun object so the hash field should not be set. The txs in the bundle come from the public mempool or are self-constructed, and up to 50 rawtransactions can be set. Searchers can authorize the disclosure of txs in raw bundles to allow other Searchers to backrun, or they can keep transactions private and Scutum will forward the raw bundles to mainstream builders.

First Backrun Bundle

Searcher executes the backrun strategy on Raw Bundle, and can choose to continue to disclose the bundle to other Searchers to execute nested backrun strategies. The overall structure of First Backrun Bundle is generally [Raw Bundle tx1, backrun tx1].

Searcher executes the backrun strategy on the raw bundle to form the first backrun bundle. The hash field sets the raw bundle hash received in the data stream, and txs field sets the backrun tx. Searchers can disclose the backrun bundle to other Searchers to execute nested backrun strategy. The overall structure of the backrun bundle in the data stream is generally [raw bundle txs…, backrun tx].

Second Backrun Bundle

Searcher can execute the backrun strategy again on the first backrun bundle submitted by other Searchers, forming a nested bundle that is backrun twice. The hash field sets the hash of the first backrun bundle, and txs sets the second backrun tx. The overall structure of the second backrun bundle is generally [raw bundle txs…, first backrun tx, second backrun tx].

circle-info

The second backrun bundle will no longer be disclosed to other Searchers, and the parameters hint, refundRecipient will be invalid.

Response Example

normal

abnormal

FAQ

What is the difference between sending Bundle to BlockRazor RPC and Block Builders?

  • In BSC, BlockRazor RPC will forward the bundle to mainstream builders, and Block Builders will send the bundle to BlockRazor Builder

Last updated