joshteng / solana-spl-faucet

A simple UI for user's to mint tokens for themselves to test your Solana programs

Home Page:https://faucet.raccoons.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Set the minter env vars
  2. 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

About

A simple UI for user's to mint tokens for themselves to test your Solana programs

https://faucet.raccoons.dev


Languages

Language:Svelte 55.1%Language:TypeScript 33.3%Language:JavaScript 8.2%Language:HTML 2.9%Language:CSS 0.5%