如何使用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

Пов'язані матеріали

From Sand to Chips: Hefei's Semiconductor Alchemy

From Sand to Chips: Hefei's Semiconductor "Alchemy" On July 27, 2026, a memory chip maker from Hefei made history by surpassing the market capitalization of Industrial and Commercial Bank of China on its Shanghai Stock Exchange debut. This marks the culmination of Hefei's two-decade industrial transformation, often summarized in three strategic leaps: "Screen, Chip, Vehicle." The journey began in 2008 with a bold investment in BOE, establishing China's first 6th-generation LCD panel line. The second leap was the "Project 506" in 2016, which gave birth to ChangXin Memory Technologies (CXMT). With initial backing of 14.4 billion RMB from Hefei's state-owned investment platform, CXMT aimed to break into the global DRAM market, then over 95% controlled by three overseas giants. CXMT achieved a breakthrough in 2019 by producing China's first 8GB DDR4 DRAM chip, employing "generational leapfrog" R&D to catch up. After years of significant losses, the company turned profitable in 2025. A dramatic surge followed in 2026, driven by AI-driven demand and full capacity utilization, propelling CXMT to become the world's fourth-largest DRAM manufacturer. CXMT's success is not isolated. It anchors a dense, localized semiconductor ecosystem in Hefei. Within its vicinity are numerous supporting companies for equipment, materials, and packaging & testing. This cluster has fueled the regional economy, with Hefei's integrated circuit industry output growing over sevenfold between 2016 and 2025. The ripple effects extend beyond high-tech, revitalizing local communities with new businesses and services catering to the influx of workers. For individuals, Hefei offers competitive tech salaries at a significantly lower cost of living compared to major coastal cities, along with improved amenities and shorter commutes. Hefei's story demonstrates two decades of focused, long-term industrial policy, transforming the city from a provincial capital into a trillion-RMB GDP "Double Ten-Thousand" city (10 million people, 1 trillion RMB GDP). It shows how persistence in strategic sectors—turning sand into chips—can redefine a city's economic destiny.

marsbit3 хв тому

From Sand to Chips: Hefei's Semiconductor Alchemy

marsbit3 хв тому

Some Go Bankrupt, Others Go Shopping: The Counter-Cyclical Acquisition Logic of MoonPay, Circle, and Kraken

During a period of market stress where multiple crypto firms filed for bankruptcy or shut down, three major companies—MoonPay, Circle, and Kraken—pursued strategic acquisitions to strengthen their positions. Their divergent strategies reflect differing dependencies on key unresolved industry questions: which trading platforms, public blockchains, and stablecoins will ultimately dominate. MoonPay, operating at the fiat-crypto gateway, acquired Glide to expand its capabilities in token swaps, cross-chain operations, and financial reconciliation. Its business model is not tied to any single blockchain or stablecoin, allowing it to profit from user activity across various platforms. Circle, facing competitive pressure from the new Open Dollar Standard (OUSD) which could erode its core revenue from USDC reserve interest, acquired nearly a thousand patents from IBM. This move aims to build a competitive moat around USDC by enhancing its enterprise infrastructure, banking integrations, and compliance tools, shifting competition beyond mere interest yields. Kraken acquired Magic Labs' wallet-as-a-service business to deepen its integrated trading platform. The goal is to create a seamless "universal account" where users can trade crypto, stocks, and tokenized assets without leaving Kraken's ecosystem, while also bolstering its own layer-2 blockchain, Ink. These acquisitions highlight a trend where leading firms are consolidating core infrastructure not just for immediate profits, but to secure their futures amid ongoing industry consolidation and uncertainty. The competitive battleground is shifting from basic infrastructure access to superior product integration and ecosystem scale.

marsbit9 хв тому

Some Go Bankrupt, Others Go Shopping: The Counter-Cyclical Acquisition Logic of MoonPay, Circle, and Kraken

marsbit9 хв тому

The Permanent Underclass: No One Can Answer That 17-Year-Old Child

The article "The Permanent Underclass: No One Has an Answer for That 17-Year-Old" explores the concept of a "permanent underclass" emerging in a future where AI can perform most cognitive and physical labor. This theory, gaining traction in tech circles, suggests that as AI reduces the need for human workers, wages lose importance, and wealth increasingly flows to those who own AI models, compute, and data. The core issue is not temporary poverty but the potential breakdown of the traditional ladder of upward mobility—through labor, bargaining, and asset accumulation—making "underclass" a permanent status. The piece highlights a poignant question posed by researcher Jasmine Sun to AI lab personnel: What advice would you give a typical 17-year-old facing this future? Most had no answer, acknowledging the frightening transition ahead. However, while struggling to advise others, many in the AI field are securing their own positions, shifting from research or policy into labs to gain equity and stand on the "capital" side. This creates a vicious cycle: the more people believe labor's bargaining power is vanishing, the fewer work to rebuild it, accelerating its decline. Common personal survival strategies—learning AI skills, acquiring AI company equity, or pivoting to hands-on, in-person work—are analyzed. The author argues these are largely stopgaps, accessible mainly to the privileged, and may collectively undermine labor's overall position. The fundamental question shifts from "how not to fall behind" to "why must one's survival depend on being needed by capital?" The article concludes that the real solution is not individual adaptation but building a new societal "negotiating table"—new laws, forms of collective bargaining, or redistribution mechanisms (like taxes or public funds) to ensure the wealth AI creates is shared, especially with those displaced. It contrasts tentative institutional responses in China with a potential regulatory vacuum in the US, warning that without such frameworks being established before public frustration boils over, social unrest could follow. The 17-year-old’s dilemma underscores a systemic failure: the architects of this future are buying personal insurance but offering no collective answers.

marsbit18 хв тому

The Permanent Underclass: No One Can Answer That 17-Year-Old Child

marsbit18 хв тому

Торгівля

Спот
活动图片