In the user interface of my DApp, how can I detect that a blockchain reorganization happened and what should I do to update the UI state once the fork is resolved?

1 Answer 1


There are a few modules around that let you keep track of the "state" of a transaction (unconfirmed, X confirmations, conflicting transaction exists and is being confirmed, fully confirmed, definitely failed) and represent this info in the UI with color-coding. You should then probably only make "irreversible" changes to the data that's represented in the UI after a transaction gets to 12 confirmations.

  • One of said modules is reflux-tx
    – caktux
    Commented Jan 21, 2016 at 12:55
  • 1
    would like to see a nodejs module. I'm considering adding the equivalent of reflux-tx to ether-pudding if not, so I can transition application state based on promises.
    – Paul S
    Commented Apr 8, 2016 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.