Frontrunning Protection

This blxr_private_tx endpoint allows users to send a single transaction to be distributed directly to mining pools that are participating in the bloXroute Private Transactions Program. backrun_private_tx endpoint allows users to safely submit private transactions (e.g. protection against frontrunning and sandwich attacks) while participate in the BackRunMe program, allowing searchers to backrun the transaction via MEV if it produces an arbitrage profit. Most importantly, BackRunMe gives a portion of this additional profit back to the user.

REQUEST

Method: blxr_private_tx, backrun_private_tx

Method

DNS

Request Type

blxr_private_tx

api.blxrbdn.com

HTTPS POST, WSS

backrun_private_tx

backrunme.blxrbdn.com

HTTPS

Parameters

Parameter

Description

transaction

[Mandatory] Raw transaction bytes without 0x prefix.

timeout

[Optional] An integer value that represents the time, in seconds, needed to wait for a Private Transaction to be included in a block. If omitted, it defaults to 0. If timeout is not 0 and the transaction is not mined after the timeout value, it will be sent publicly. If the timeout is 0, no public transaction will be sent.

Examples

Cloud-API: blxr_private_tx
Cloud-API: backrun_private_tx
Cloud-API: blxr_private_tx
curl https://api.blxrbdn.com \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: <YOUR-AUTHORIZATION-HEADER>" \
-d '{"method": "blxr_private_tx",
"id": "1",
"params": {"transaction": "f86b018477359...4d4b0e0b58219"}}'
Cloud-API: backrun_private_tx
curl https://backrunme.blxrbdn.com \
--insecure \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: <YOUR-AUTHORIZATION-HEADER>" \
-d '{"method": "backrun_private_tx",
"id": "1",
"params": {"transaction": "f86b018477359...4d4b0e0b58219"}}'

RESPONSE

Result Fields

Result Field

Description

tx_hash

Transaction hash

sent_as_blxr_private_tx

for backrun_private_tx only: Flag indicating if a transaction has been processed as standard private transaction.

Examples

Cloud-API
Cloud-API
{
"jsonrpc": "2.0",
"id": "1",
"result": "0xffd59870844e5...bfa54a69"
}

NOTES

All Users

The bloXroute Private Transactions Program is available for Enterprise tier users. In order to send Private Transactions, you need to load a balance. Enterprise and Enterprise Elite plans include a credit of $250 and $500, respectively, for Private Transactions (must be used within the month). Additional credits can be purchased through the Account Portal.

The average time for Private Transactions to be included in a block is affected by the hash rate of the mining pools participating in the program. Currently, the hash rate is above 40%.

Other than not broadcasting Private Transactions, mining pools are likely to treat private transactions the same as public transactions. It is the user's responsibility to submit Private Transactions with the proper gas price to be successfully mined.

Users can develop strategies for the waiting period between sending a Private Transaction and sending a public transaction. Note that if a user decides to send the transaction publicly, it is advantageous to replace the transaction with a higher fee. bloXroute conveniently only charges for Private Transactions that are mined. Users can also use the timeout parameter to instruct the BDN how long to wait for the Private Transaction to execute before sending it publicly

Participating mining pools agree not to broadcast Private Transactions to the peer-to-peer network, however there are still scenarios that Private Transaction can be exposed to the public before confirmation: for example, in circumstances where the block containing the Private Transaction becomes an orphan or uncle block. By using the Private Transactions Program, users understand that it is not guaranteed that Private Transactions will always be kept private.

Pricing

Private transactions cost an additional fee based on the transaction’s gas fee. The base price is 15% of the transaction’s gas fee. To use private transactions, you must load a balance that will be charged based on usage. As you send more, bloXroute will provide a rebate to use in the next month.

Txs / month

Rebate

60 - 300 txs

2.5% of fee available for use next month

300 - 1500 txs

5% of fee

1500 - 5000 txs

7.5% of fee

Above 5000 txs

10% of fee

For example, if you send 1,000 transactions that were confirmed at an average gas fee of $50, Private Transactions will cost $7,500 (15% fee * $50 gas fee * 1,000 txs) but you will receive a rebate of $2,500 (5% fee rebate * $50 gas fee * 1,000 txs) for use in the following month.