Cancel a transaction

Transaction cancellation is only supported on Ethereum at the moment.

Merkle provides a best-effort transaction cancellation feature. While we will notify all participating builders not to process the transaction, we cannot fully guarantee that the transaction will not be mined, particularly if the cancellation request is made close to the slot's end time.

To cancel a transaction, you can use the eth_cancelTransaction method via your Merkle RPC:

{
    jsonrpc: "2.0",
    id: 1,
    method: "eth_cancelTransaction",
    params: [
        // The hash of the transaction to be cancelled
        "0xb8101baf6bfd31243578e8847c12316f47318f567b02296fdf7fc783bef74826"
    ]
}

A successfull response will return true:

{
    id: 1,
    result: true,
}

Last updated