如何使用MetaMask加速或取消未决交易

去中心化金融社区Опубликовано 2022-03-31Обновлено 2022-03-31

Введение

当我们在区块链上提交交易时,我们通常会在区块链的原生代币中支付一笔gas费。

当我们在区块链上提交交易时,我们通常会在区块链的原生代币中支付一笔gas费。

这一费用往往会根据市场条件自动调整,即区块链本身对区块空间的需求,但如果交易卡住了很长一段时间,它也可以通过向网络竞价来手动调整,以便更快地处理我们的交易。

在本文中,我们将解释如何加速长时间待处理的被卡住的交易,或者完全取消交易。

如何加快与MetaMask区块链交易

在MetaMask上发送交易后,一个新交易将被添加到队列中。将它添加到队列后,我们将看到两个按钮——speedup和cancel。

在单击SpeedUp按钮之前,单击交易并在区块链浏览器上查看交易详细信息。

Etherscan.io上的示例交易详情

请注意,“EstimatedConfirmationDuration”将显示在区块链上确认交易大约需要多长时间。

通常,如果交易是用市场费用发送的,它会很快被结算。但是,如果由于网络利用率突然飙升而花费的时间太长,那么我们可能希望在需要时加快速度。

点击“SpeedUp”按钮,我们就可以重新提交相同的交易,但会收取更高的gas费,这应该会让交易处理得更快。

我们会想要发送一个交易与gas费用,以便它在接下来的几个区块内被处理。要做到这一点,可以使用像Blocknative的gas估算器这样的服务。

Blocknativegas估算器

Blocknativegas估算器可以让我们看到推荐的优先费用和最大费用设置(我们没有EIP-559),以及在下一个区块(即15秒)内完成交易的概率。

要了解更多细节,我们也可以在同一页面上查看他们的Heatmap,以显示一天中特定时间的平均gas价格。

确保在我们发送更高优先级的交易之前检查这些资源,以避免支付过多的gas费用。

如何使用MetaMask取消交易

取消交易最简单的方法是在上面的交易窗口中选择“cancel”而不是“speedup”。

但是,交易取消只能在交易仍在网络上是待处理的情况下进行。如果交易已经被区块链确认,则不可逆。取消交易的更高级的方法是使用自定义的nonce。

转到MetaMask的Advanced设置并启用自定义交易nonce。

此外,启用Advanced中gas控制配置和覆盖默认gas设置。

打开这两个选项后,发送一个新交易。在我们的例子中,我们将发送一个0ETH交易给我们自己。

将我们现有的公共地址粘贴到搜索框中。

输入0ETH。

在我们的账户上查找区块链上的未决交易,并确定两件事:

交易的nonce(这里是73)

gas费和最高优先权费(这里是60和1.5)

输入与待处理交易相同的自定义Nonce字段。

通过点击Market按钮来调整gas。

选择“Advanced”,确保使用比上次交易更高的gas费。

单击Save,然后单击Confirm以发送交易。

这些步骤允许区块链比原始的待处理交易更快地接收我们的取消请求,因为gas量更高。

一般来说,这些交易要想成功,最好设置的最大费用至少比我们取消的交易高25%到30%。

Source:https://medium.com/stakingbits/how-to-speed-up-or-cancel-a-pending-transaction-with-metamask-4de3e8b08ea4

Похожее

Bitcoin Trading Strategy Breakdown: Celebrity Predictions and Classic Models All Fail, Only These Four Indicators Remain

Analysis of Bitcoin Trading Strategies: Why Celebrity Forecasts and Classic Models Fail, Leaving Only These Four Reliable Indicators This analysis examines the failure of common Bitcoin prediction methods and identifies four reliable indicators for constructing a trading strategy. The author reviewed all major BTC prediction approaches from 2017-2025, categorizing them into three groups: celebrity price targets (consistently over-optimistic), analytical models like Stock-to-Flow (broken post-2022), and on-chain signals. The key finding is that more data often creates confusion, not clarity. The strategy discards unreliable elements: celebrity predictions (incentivized to be extreme), pure models (invalidated by post-ETF market changes), and the Fear & Greed Index used alone (too many false signals). Four reliable indicators were selected: 1. **MVRV Z-Score:** Accurately identifies cycle bottoms when entering its green zone (e.g., 2018, 2020, 2022). Note: Its ability to call tops is now ineffective post-2024. 2. **SOPR (28-day MA):** Consistently signals bottoms when below 1.0, indicating holders are selling at a loss. 3. **ETF Net Flow:** A crucial post-2024 metric showing institutional momentum (e.g., sustained inflows = buying). 4. **Macro Liquidity (Fed policy & M2):** Sets the overall directional bias (e.g., bullish during easing cycles). The core strategy involves waiting for a multi-signal共振 (resonance). For example, a bottom signal requires MVRV in the green zone + SOPR < 1.0. A top signal requires overheated on-chain data + sustained ETF outflows. Macro policy sets the overall direction. The Fear & Greed Index is only used as a weighted confirmatory signal, never alone. Action is only taken when three or more indicators align. The author automated this into a monitoring system that sends Telegram alerts only when signals trigger. As of the article's date (April 15, 2026), the system showed a strong bottom signal: extreme fear (F&G=12), MVRV in the buy zone, and SOPR < 1.0. The only contrary signal was weak ETF flows. Historically, such triple on-chain共振 has preceded 100%+ returns. The conclusion emphasizes building a personal framework over relying on external predictions, allowing for iterative improvement and customization based on individual risk tolerance.

marsbit49 мин. назад

Bitcoin Trading Strategy Breakdown: Celebrity Predictions and Classic Models All Fail, Only These Four Indicators Remain

marsbit49 мин. назад

Торговля

Спот
Фьючерсы
活动图片