{"id":1711,"date":"2020-06-18T09:38:44","date_gmt":"2020-06-18T09:38:44","guid":{"rendered":"http:\/\/blog.mathwallet.org\/?p=1711"},"modified":"2020-06-23T07:50:16","modified_gmt":"2020-06-23T07:50:16","slug":"how-to-accelerate-cancel-the-eth-transaction","status":"publish","type":"post","link":"https:\/\/blog.mathwallet.org\/?p=1711","title":{"rendered":"How to accelerate\/cancel the ETH transaction"},"content":{"rendered":"<p class=\"_tgt transPara grammarSection\"><span class=\"transSent\" data-group=\"0-0\">When encountering an Ethereum GAS jam, the Ethereum transaction may become &#8220;stuck&#8221; in such a way that the sender cannot proceed with the next transaction and the receiver cannot receive the transaction, which requires the acceleration\/cancellation function.<\/span><\/p>\n<h2 class=\"_tgt transPara grammarSection\"><span class=\"transSent\" data-group=\"1-0\">Ethereum transfer principle<\/span><\/h2>\n<p class=\"_tgt transPara grammarSection\"><span class=\"transSent\" data-group=\"2-0\">Every transaction that takes place on Ethereum has a value called nonce, which is used to calculate the number of transactions issued in an Ethereum address. <\/span><span class=\"transSent\" data-group=\"2-1\">All transfers to an Ethereum address are sorted by the time you initiated the transfer, counting from zero. <\/span><span class=\"transSent\" data-group=\"2-2\">The random number of the transaction increases by 1 with each transaction sent to the address, while the transaction transferred to the address does not change the nonce value. <\/span><span class=\"transSent\" data-group=\"2-3\">And the rules for ethereum transfers are as follows:<\/span><\/p>\n<p class=\"tgt grammarSection\" data-group=\"0-0\">Miners need to pack and transfer in the order of<span style=\"display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: 'Noto Serif',serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;\"> small to large <\/span>nonce value. Therefore, before the transaction with nonce value of 0 is packed by miners, the transaction with nonce value of 1,2,3&#8230; no matter how high the miners&#8217; fee is, they must always wait in line.\u00a0So when there&#8217;s an unfinished deal, you can&#8217;t move on to the next one, you can&#8217;t jump the queue.<\/p>\n<p class=\"tgt grammarSection\" data-group=\"1-0\">Nonce is continuous and cannot be skipped<\/p>\n<p class=\"tgt grammarSection highlight\" data-group=\"1-1\">When a transaction with a nonce of 1 is not initiated, the nonce cannot jump directly from 0 to 2, that is, a nonce of 2 transaction can only occur after a transaction with a nonce of 1.<\/p>\n<p class=\"tgt grammarSection\" data-group=\"2-0\">If there are two transactions with same nonce, after one transaction succeeds, the other transaction will be replaced and the transfer will fail.<\/p>\n<h2 class=\"tgt grammarSection\" data-group=\"3-0\">Accelerate the transaction<\/h2>\n<p class=\"tgt grammarSection\" data-group=\"4-0\">When a trade is initiated and waited for a long time, you can click <strong>Accelerate<\/strong><\/p>\n<p data-group=\"4-0\"><img loading=\"lazy\" class=\"alignnone \" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/6%E6%9C%88\/ETH_accelrate\/ETH1.jpg\" width=\"350\" height=\"607\" \/><\/p>\n<p data-group=\"4-0\"><span class=\"transSent\" data-group=\"0-0\">Click on the <strong>Accelerated<\/strong>, close current trade when the trade and initiate a transfer with the same nonce value but a higher miner fee to cover the original.<\/span><span class=\"transSent\" data-group=\"0-1\">The transaction would then be packed more quickly and the original transfer will be replaced.<\/span><\/p>\n<p data-group=\"4-0\"><img loading=\"lazy\" class=\"alignnone \" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/6%E6%9C%88\/ETH_accelrate\/ETH2.jpg\" width=\"350\" height=\"613\" \/><\/p>\n<p data-group=\"4-0\">The value of GWEI will be automatically set as the current best GWEI for transfer. Click &#8220;<strong>Confirm<\/strong>&#8221; after the miner&#8217;s fee is confirmed<\/p>\n<p data-group=\"4-0\"><img loading=\"lazy\" class=\"alignnone \" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/6%E6%9C%88\/ETH_accelrate\/ETH%203.jpg\" width=\"350\" height=\"605\" \/><\/p>\n<h2 class=\"_tgt transPara grammarSection\"><span class=\"transSent\" data-group=\"0-0\">Cancel the deal<\/span><\/h2>\n<p class=\"_tgt transPara grammarSection\"><span class=\"transSent\" data-group=\"1-0\">After clicking<strong> cancel<\/strong>, a trade will be sent to cancel the current trade, the current trade will fail, the same steps as when &#8220;accelerated trade&#8221;<\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone \" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/6%E6%9C%88\/ETH_accelrate\/eth4.jpg\" width=\"350\" height=\"605\" \/><\/p>\n<p data-group=\"4-0\">\n","protected":false},"excerpt":{"rendered":"<p>When encountering an Ethereum GAS jam, the Ethereum transaction may become &#8220;stuck&#8221; in such a way that the sender cannot proceed with the next transaction and the receiver cannot receive the transaction, which requires the acceleration\/cancellation function. Ethereum transfer principle Every transaction that takes place on Ethereum has a value called nonce, which is used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"unlock_protocol_post_locks":""},"categories":[1],"tags":[37],"_links":{"self":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/1711"}],"collection":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1711"}],"version-history":[{"count":3,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/1711\/revisions"}],"predecessor-version":[{"id":1752,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/1711\/revisions\/1752"}],"wp:attachment":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}