It is indeed possible to withold a transaction while trying to mine it into a block<p>But this still doesn&#x27;t provide 100% certainty that you will collect the transaction fee. You risk that other miners try to orphan the block once it is published (i.e. ignore it and build on the previous one instead) in order to put the transaction in their own block.