Solana SPL Faucet
Make it easy for your test user to test your program on Devnet by allowing them to mint token to themselves.
Configurations
- Set the minter env vars
- Set your SPL token details here -> /src/lib/tokens.ts !Minter should have authority to mint these tokens
Build
Built with Sveltekit.
Env Vars
PUBLIC_MINTER_PUBLIC_KEY= # base 58 address of the minter
PRIVATE_MINTER_PRIVATE_KEY= # uint array private key of minter
Minter is the mint authority for your SPL tokens.
Run Dev Server
npm install
npm run dev
Production
Tested to work on Vercel with adapter-node
.
Tried Cloudflare pages with adapter-cloudflare
but as of 13 July 2023, it is too much of a hassle to make mint API endpoint to work because of @solana/web.js
's Buffer dependency and Cloudflare pages function lack of Node libraries.
A sample deployment at https://faucet.raccoons.dev