We're now supporting Polygon zkEVM!
Learn more here.


eth_cancelPrivateTransaction RPC Method

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


  1. txHash - string - The transaction hash for the private transaction to be canceled. A transaction can only be requested to be canceled if the request is made from the same endpoint the eth_sendPrivateTransaction call was made from


  1. result - It is true if the transaction is successfully canceled, otherwise false

Code Examples:

require 'eth'

client = Eth::Client.create 'http://sample-endpoint-name.network.quiknode.pro/token-goes-here/'
payload = {
    "jsonrpc": "2.0",
    "method": "eth_cancelPrivateTransaction",
    "params": [{"txHash": "PRIVATE_TX_HASH"}],
    "id": "1"

response = client.send(payload.to_json)
puts response
Ready to get started? Create a free account