CLI for BANK token launch operations on Solana.
bun installGenerate deployer keypairs for deployment:
./bank initOptions:
-f, --force- Forcefully overwrite existing keypairs-o, --output-dir <dir>- Output directory (default:./secrets)
Launch the BANK token on Solana:
./bank launchOptions:
-c, --cluster <cluster>- Cluster to connect to:local,devnet,mainnet(default:devnet)-s, --send- Actually send the transactions (dry-run by default)--seed <seed>- Seed for mint derivation (default:bank-launch)
| Script | Command | Description |
|---|---|---|
launch:local |
bun run launch:local |
Launch token on local cluster |
lint |
bun run lint |
Run Biome linter |
lint:fix |
bun run lint:fix |
Run Biome linter with auto-fix |
lint:fix:unsafe |
bun run lint:fix:unsafe |
Run Biome linter with unsafe auto-fix |
type-check |
bun run type-check |
Run TypeScript type checking |
Manage the local Surfpool validator:
./bank surfpool start # Start validator with TUI (default)
./bank surfpool start --no-tui # Start validator without TUI
./bank surfpool reset # Reset validator state
./bank surfpool stop # Stop validatorFor local development, you need to start Surfpool first:
./bank surfpool startThis starts a local Solana validator connected to devnet and airdrops SOL to all keypairs in ./secrets/.
Then in another terminal, run the launch:
./bank launch --cluster local --sendYou can now run the deposit commands with
./bank deposit --cluster local user-1 1.5 # user-1 keypair deposits 1.5 SOL