leather-io / extension

Leather browser extension
https://leather.io
MIT License
294 stars 142 forks source link

Add ability to request testnet STX from faucet in testnet #2669

Open getify opened 2 years ago

getify commented 2 years ago

Since you can't reasonably fund a testnet account with real funds, when you select a testnet account in the chrome-extension wallet, the "Funding" feature would make much more sense if it just only showed a link to Faucet and let you automatically fund there with a click of a button.

Has this been considered?


The motivation is, when a new user/developer shows up at one of the "Starters" or "Demos" for Stacks.js, and they're prompted to "Connect" via a stacks wallet, we need to:

  1. Encourage them to login with a testnet account, so they don't accidentally spend any real stacks funds

  2. Make it clear that they need some testnet funds to do the "Vote" demo. We can perhaps query and show their account balance, and if it's too low, disable the "Vote"

  3. Prompt the user to either get more testnet funds via their Wallet -- THIS is why having Faucet easily accessible in the wallet matters!!! -- and/or have a direct link to the Faucet request in the page

This kind of ease-of-onboarding flow is important to attract new developers/users. So I think the wallet could go a long way to helping smooth over this first-time experience when interacting with the Starters/Demos.

kyranjamie commented 2 years ago

Great suggestion. We have a button to do this in desktop wallet, but we never included in extension.

markmhendrickson commented 2 years ago

+1 on this idea. @getify might you be interested in helping to get this in place with a PR?

314159265359879 commented 8 months ago

Hiro scheduled public testnet (Nakamoto release) beginning of March, we should have a faucet in the testnet extension wallet at that time. it would be great to have this prior to that.

314159265359879 commented 8 months ago

should there be a faucet option on the signing screen when the STX balance is zero as suggested in #3978 too? or just something like this (comparable to the desktop testnet wallet)? image

markmhendrickson commented 8 months ago

@314159265359879 I think we can close this one and consolidate the UX need into https://github.com/leather-wallet/extension/issues/3978?