Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancellation of Pending Transaction #42

Open
xBalbinus opened this issue Aug 7, 2024 · 3 comments
Open

Cancellation of Pending Transaction #42

xBalbinus opened this issue Aug 7, 2024 · 3 comments
Assignees
Labels
from slack Painpoint request flagged from Slack

Comments

@xBalbinus
Copy link
Collaborator

Description:
Is it possible to cancel a pending transaction, eg a InvokeContract call?

Motivation: Currently, there's one message on https://filfox.info/en/address/f410fko6732us66tav34cekesnubipaayvs2o4pv46mi that has been pending for 8h. This is due to the rise in gas prices (https://filfox.info/en/stats/gas). We want to recover our system and get calls to work again. Our hope is that we can cancel such a transaction, and resubmit it with more gas. Would something like this help?

Source:
https://filecoinproject.slack.com/archives/CRK2LKYHW/p1722432098249869?thread_ts=1722432098.249869&cid=CRK2LKYHW

@xBalbinus xBalbinus added the from slack Painpoint request flagged from Slack label Aug 7, 2024
@xBalbinus xBalbinus changed the title <New Issue From Slack> Cancellation of Pending Transaction Aug 7, 2024
@longfeiWan9
Copy link
Member

  • Ribasushi slack message explaining how to cancel a message stuck in the mpool.
  • There is a lotus doc explaining how to increase gas fee for the pending transaction using Lotus cli.
    @xBalbinus maybe we can write a tutorial on how to cancel or expedite the pending transactions? Usling Lotus CLI or API calls, or event with other tools if possible ?

@xBalbinus
Copy link
Collaborator Author

Yes, we should write some documentation on this. Normally though, both hardhat and foundry innately have capabilities for you to cancel / skip existing transactions, so this might end up even as a P2.

@trruckerfling
Copy link
Collaborator

trruckerfling commented Aug 22, 2024

tutorial on how to cancel or expedite the pending transactions

There are 3 paths:

  1. This assumes Lotus CLI isn't readily available to general dev. Possible to do via ethers.js, to reconstruct pending transaction with updated gas fee (this is a common fix for evm devs, but filecoin devs might be unfamiliar)
  2. For Lotus CLI, there's a docs page for this existing. No action needed.
  3. Another solution for txns initialized on metamask - there is a cancel feature.

End result should be a fix on forum and amplified to builders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from slack Painpoint request flagged from Slack
Projects
Status: 🎒Backlog
Development

No branches or pull requests

3 participants