if for some reason tx failed, as a user, I should be able to insert a tx hash and repeat it again.
How to do it?
- Validate tx hash
- Check status, if it was successful, just offer user to execute it
- if status was
0x1 which means failed, try to see if
- it was out of gas by checking if gasLimit == gasUsed in that txHash. If so, increase gasLimit and offer to resubmit
- if it was multisend ether, maybe the reason was not enough eth balance at the time of execution.
There is pending PR #2 which hasn't been tested fully and maybe it could be reused.