Description
Hey guys it's me again, here to bother you. One feature that would be cool is the ability to queue up transactions that have already been signed by the user, and are waiting for a previous tx to confirm, before sending.
Scenario
user wants to call a contract function which will spend their DAI (such as rDAI mint
). First they need to call approve
on DAI, and wait for confirmation before submitting the mint
.
Typical UX: sign, wait, sign, wait, done
Better UX if you batch the sigining: sign, sign, wait, done
Since we get all the signing out of the way first, it makes the experience much smoother, since there is only one "waiting" period for the user.
Options
Since the user may navigate away from the page, we need to store the second signed tx until the first one confirms. You can either send it to an external server to do this (booo, too centralized).
OR
We can store it in local storage using Subspace. Anytime the user is on any page, Subspace can check if there is a tx waiting to be confirmed, and submit the next sequential one if necessary.
contributing
I plan to implement this idea in my dapp anyways. Depending on your thoughts I'd be happy to share the code and maybe this is something worth contributing to.