backpack
backpack copied to clipboard
provide nice error for sending tokens with insufficient balance
Right now we just show “Error: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.”
Can i work on this issue? If i can, what is the expected result?
Here’s a design we can go with for SOL. Ideally we’d show this if someone has a zero SOL balance, prior to attempting to perform a transaction.

Feel free to assign yourself if you’d like to work on this @vijayabhaskar95. Thanks!
And of course, ETH would be similar:
@aarongillett Should we show the above mentioned design even before the user attempt's to perform a transaction? i.e: when the user clicks on on the send button.
@armaniferrante , is there any way , I can setup the backend ?