Sol.College

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 directorySource files
pool257
frontend20
backend14

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.

Rohan-Singla/Axon · 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 });
  1. Line 76 const transferIx = createTransferInstruction(: An SPL token transfer through the Token Program.
  2. 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.

DirectoryCommandRuns
frontendnpm run devnext dev --turbopack
frontendnpm run startnext start
frontendnpm run buildnext build --turbopack
frontendnpm run linteslint
backendnpm run devtsx watch src/index.ts
backendnpm run startnode dist/index.js
backendnpm run buildtsc -b

What you could build from it