Full lesson
Axon
Axon a micropayments solution building using solana to help small miners of bitcoin.
What it does
From the project README:
Axon was built during the **Colosseum Cypherpunk Hackathon**, pushing the boundaries of decentralized mining and payments.
- Original
- Rohan-Singla/Axon
- SuperStack fork
- Blockchains/Axon @
e772da5 - Stars
- 5
- Last push (original)
- 2026-01-02
- Languages
- Rust, TypeScript, Shell, CSS, JavaScript
- Detected stack
- Next.jsweb3.js
- Categories
- Payments
- Licence
- MIT
- Homepage
- https://axon-frontend-six.vercel.app/
Architecture
291 source files. By extension: .rs ×257, .ts ×18, .tsx ×16.
| Top-level directory | Source files |
|---|---|
pool | 257 |
frontend | 20 |
backend | 14 |
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/axon/. 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.
frontend/app/api/claim/route.ts L73–96 @ e772da5 · MIT · original ); } const transferIx = createTransferInstruction( fromTokenAccount, toTokenAccount, rewardKeypair.publicKey, 100_000_000 ); tx.add(transferIx); const { blockhash } = await connection.getLatestBlockhash(); tx.recentBlockhash = blockhash; tx.feePayer = claimerPubkey; tx.partialSign(rewardKeypair); const serializedTx = tx.serialize({ requireAllSignatures: false }).toString("base64"); return NextResponse.json({ tx: serializedTx }); } catch (err) { console.error("❌ Error in /api/claim:", err); return NextResponse.json({ error: "Internal server error" }, { status: 500 });- Line 76
const transferIx = createTransferInstruction(: An SPL token transfer through the Token Program. - Line 85
const { blockhash } = await connection.getLatestBlockhash();: Fetches a recent blockhash. Transactions expire if it gets too old.
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 |
|---|---|---|
frontend | npm run dev | next dev --turbopack |
frontend | npm run start | next start |
frontend | npm run build | next build --turbopack |
frontend | npm run lint | eslint |
backend | npm run dev | tsx watch src/index.ts |
backend | npm run start | node dist/index.js |
backend | npm run build | tsc -b |
What you could build from it
- Fork the SuperStack copy and extend it within the Payments gaps listed on the idea page.
- Learn the pattern first: Solana Pay
- Learn the pattern first: SPL Tokens: mints, accounts and transfers
- Learn the pattern first: Blinks and Solana Actions