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

Transaction details: Design cancel flow #116

Open
GBKS opened this issue Aug 8, 2024 · 0 comments
Open

Transaction details: Design cancel flow #116

GBKS opened this issue Aug 8, 2024 · 0 comments

Comments

@GBKS
Copy link
Contributor

GBKS commented Aug 8, 2024

Bitcoin transactions cannot be cancelled directly, but outstanding transactions can be overridden with new transactions that spend the funds back to yourself (therefore making the original transaction invalid).

Some ways this can be done (via Claude):

  1. Replace-by-Fee (RBF):

    • If the original transaction was sent with RBF enabled, you can replace it with a new transaction that sends the coins back to yourself.
    • This new transaction must have a higher fee to be accepted by miners.
  2. Double spend:

    • Attempt to send the same coins to a different address (or back to yourself) with a higher fee.
    • This is essentially what RBF does, but in a more standardized way.
  3. Wait for the transaction to be dropped:

    • If a transaction remains unconfirmed for a long time (usually 14 days), most nodes will eventually drop it from their mempool.
    • The funds will then be available to spend again.
  4. Use a "double-spend-as-a-service" tool:

    • Some services claim to help cancel transactions by broadcasting conflicting transactions.
    • Use these with caution as they're not always reliable or safe.

Important considerations:

  • Once a transaction is confirmed (included in a block), it cannot be cancelled.
  • These methods only work for unconfirmed transactions.
  • Success isn't guaranteed, especially if the original transaction has a competitive fee.

Replace-by-fee is also part of the fee bumping user flow to be designed in #115. Similar to that issue, this feature is likely an addition to the transaction details page, covered in the activity page of the design docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant