Cancelling an Etherdelta / Forkdelta Order

oliverchloe
2022-10-26 05:13:34

Here is a guide on how to try to get rid of those pending transactions:

    How to cancel or replace a pending transaction

 - You cannot cancel transactions that have already been confirmed on etherscan. This is only possible for transactions sent with a low gas price (e.g 1-5 gwei) that can get stuck when the ethereum network has thousands of pending transactions.
       
 - If we succeed in replacing the pending transaction, you do not end up paying the gas for the now invalid old transaction.

    Nonce

    Every ethereum transaction has a number called the nonce (found at the bottom of the transaction details on etherscan). This number is the amount of transactions made by your address, and each transaction should have a nonce higher than the previous.

        If you have multiple pending transactions, this guide will attempt to stop the one with the lowest nonce. (lowest on the list on etherscan.io)

    Stopping a transaction

    EtherDelta remembers the nonce of the last transaction you sent, that is why you can create multiple pending transactions when clicking multiple orders.
    If you refresh the website, it will reset the nonce to the last confirmed transaction. Now you get an error about pending transactions when trying to send a new transaction, as there already is a pending transaction with the same nonce.

    If you manage to send out a transaction with the same nonce but with a higher gas price, there is a chance that the new transaction will replace the old one.

    You get 2 choices

        Retry, try to send the same thing again with a higher gas price.

        Cancel, send a random transaction to replace the pending one.

    Retry

    We want to reset the nonce, so refresh the Etherdelta website (or open in a new window).

    Now raise the gas price.

        If you use EtherDelta with a private key or Ledger nano, you can click your account in the top right, and at the bottom click gas price.

    Raising the gas by very little won't make sense, as that transaction will probably end up pending as well.
    Normally 20-30 gwei should be fine to confirm the transaction in a few minutes, in extreme cases you might have to go up to 60. ethgasstation.info can be helpful in determining the gas price that you want to use.

        Remember that a higher gas price does make the transaction costs a little more expensive.

    After refreshing and raising the gas price, perform the same trade/deposit/withdraw on EtherDelta you tried to do earlier.
    Within around 30 seconds you should see a new transaction hash on etherscan instead of the old one. Now just hope that this one confirms faster.

    Cancelling transaction

    You want to get rid of the pending transaction, but do not care about the contents of that transaction anymore. This is basically the same trick as the retry, we raise the gas price, but here we just want to send out any transaction quickly.
    The easiest and cheapest transaction to make is to send a transaction of 0 ETH to your own wallet.

        EDIT: I forgot that you can't make a transaction to yourself on the EtherDelta ui. Either do the transaction using something else like myetherwallet, or do a small withdraw/deposit instead. (withdraw is cheaper if you have anything to withdraw)

    Within like 30 seconds you should see a new transaction hash on etherscan instead of the old one.

AndreasMAntonopoulos
2022-10-26 05:14:52

Same problem with me, I confuse how to cancel my order but my eth still there. So I just withdraw my eth then my order is not valid