A website for requesting testnet faucet funds.
- Supports GitHub login and provides 1 SUI on testnet per GitHub account daily
- Provides 1 SUI on testnet daily for accounts holding at least 0.1 SUI on mainnet
- Node.js >= 20.0.0
- pnpm >= 9.12.3 (
npm install -g pnpm)
# Clone the repository
git clone <repository-url>
# Install dependencies
pnpm install# Run in development mode
pnpm dev
# Build the project
pnpm build
# Start the production server
pnpm startnpm install -g pnpmpnpm installYou need to register a GitHub OAuth application at github.com/settings/developers The mnemonic is used to generate the private key for the faucet account.
Configure the clientId in site_config.ts
export MNEMONIC=<your mnemonic here>
export clientId=<your client id from github oauth site>
export clientSecret=<your client secret from github oauth site>source .envimport {github_config_faucet as config} from './site_config'to
import {github_config_local as config}from './site_config'pnpm devpVisit 'http://localhost:6789'
Modify GithubPage.tsx:
import {github_config_faucet as config} from './site_config'pnpm uploadAccess https://wwww.faucet.mov in your browser
- For GitHub authentication token details, see: oauth