Full lesson
Galaxie
Galaxie
What it does
From the project README:
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
- Original
- saurabhraghuvanshii/Galaxie
- SuperStack fork
- Blockchains/Galaxie @
5e3f8bf - Stars
- 0
- Last push (original)
- 2025-11-02
- Languages
- TypeScript, CSS, JavaScript
- Detected stack
- Next.jsweb3.js
- Categories
- Other
- Licence
- MIT
- Homepage
- https://galaxie-theta.vercel.app
Architecture
83 source files. By extension: .tsx ×65, .ts ×18.
| Top-level directory | Source files |
|---|---|
app | 82 |
(root) | 1 |
Dapp: devnet deploy pending
⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/galaxie/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.
Key code, explained
Excerpts chosen automatically where the code uses the most Solana concepts, pinned to the fork's commit.
app/lib/solana-payment.ts L1–24 @ 5e3f8bf · MIT · originalimport { Connection, Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction, LAMPORTS_PER_SOL, sendAndConfirmTransaction, ComputeBudgetProgram,} from '@solana/web3.js';import bs58 from 'bs58';import nacl from 'tweetnacl'; // Solana network configurationconst SOLANA_RPC_URL = process.env.SOLANA_RPC_URL || 'https://api.devnet.solana.com';const PLATFORM_WALLET_PRIVATE_KEY = process.env.PLATFORM_WALLET_PRIVATE_KEY; export interface PaymentRequest { buyerKeypair: Keypair; creatorPublicKey: PublicKey; totalAmount: number; // in lamports feePercent: number; // e.g., 5 for 5% videoId: string;- Line 9
sendAndConfirmTransaction,: Submits the signed transaction to the cluster. - Line 10
ComputeBudgetProgram,: Sets the compute-unit limit or price (priority fee).
How to run, build and test
These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.
| Directory | Command | Runs |
|---|---|---|
. | npm run dev | next dev --turbopack |
. | npm run start | next start |
. | npm run build | next build --turbopack |
What you could build from it
- Fork the SuperStack copy and extend it within the Other gaps listed on the idea page.
- Learn the pattern first: Program Derived Addresses (PDAs)
- Learn the pattern first: Cross-Program Invocations (CPIs)