Skip to main content

eth_sendPrivateTransaction RPC Method

Sends a single transaction to Flashbots for frontrunning and revert protection without the complexity of sending it as a bundle.

Updated on
Nov 2, 2023

eth_sendPrivateTransaction RPC Method

Please note that this RPC method requires the Flashbots Protect add-on enabled on your QuickNode endpoint. Also, it is supported only supported on Ethereum mainnet.

Parameters

tx
string
REQUIRED
The raw signed transaction
maxBlockNumber
string
The highest block number encoded in hexadecimal value in which the transaction should be included
preferences
object
The preferences object
fast
boolean
It sends the transaction with fast mode when true

Returns

result
It is true if the transaction is successfully canceled, otherwise false
Request
1
curl https://docs-demo.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"eth_sendPrivateTransaction","params":["RAW_SIGNED_TX"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free