As of ~1.5 years ago, this wasn't possible: https://twitter.com/dsintermediatd/status/1286341689368551428

I am wondering if there is any way to do this now and if so whether or not anybody has built this into an SDK.


  • NB: The 64 block limit in the mentioned Twitter thread is incorrect. The value of the protocol-dependent constant max_operations_ttl is 120 blocks in the current protocol. See, e.g., tezos.stackexchange.com/questions/104/…, fore more details. Commented Jan 10, 2022 at 10:20

2 Answers 2


You can use the RPC to ban/remove an operation (The endpoint should be protected with an ACL for safety reasons).

The RPC endpoint is POST /chains/main/mempool/ban_operation (This link includes the endpoint specification).


The operation is removed from the mempool, and its effect is reverted if it was applied. It is also added to the prevalidator’s set of banned operations, to prevent it from being fetched/processed/injected in the future.

It is also possible to clear the operations in the mempool by restarting the node used to inject the operation. (Not great)


Starting from Octez v12.0, a replace by fees feature will be available on the Octez shell implementation:

This will enable the user to replace a manager operation in the Octez prevalidator's mempool (valid or not), for another manager operation - which either has more declared fees, or a greater fee/gas ratio.

However, this Octez feature depends on new protocol functionality (notably, operations precheck) which was included in the Ithaca protocol proposal, and hence it is not supported by Hangzhou, the current protocol of Tezos mainnet.

This feature will then only become operational once/if Ithaca (or another protocol implementing this functionality) is adopted by the community.

NB that the replacement operation might have the same payload, but it might very well not: for instance a possible use of this feature is to extend a batch of manager operations with a new operation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.