Sol.College

Full lesson

Fahim043-aegis-protocol

What it does

From the project README:

Aegis turns real-world visual events into confidence-scored, cryptographically verifiable proof packages that can trigger Solana Pay sessions, access decisions, attestations, and receipts.
Original
Fahim043/aegis-protocol
SuperStack fork
Blockchains/Fahim043-aegis-protocol @ d08a7c3
Stars
0
Last push (original)
2026-05-12
Languages
Python, TypeScript, CSS, JavaScript
Detected stack
Next.jssolana-py
Categories
Other
Licence
MIT

Architecture

22 source files. By extension: .py ×11, .tsx ×8, .ts ×3.

Top-level directorySource files
app8
backend6
scripts3
lib2
vision_agent2
(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/fahim043-aegis-protocol/. 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.

Fahim043/aegis-protocol · scripts/devnet_pay.py L73–96 @ d08a7c3 · MIT · original
            raise RuntimeError(f"Payer {payer.pubkey()} only has {balance / LAMPORTS_PER_SOL:.6f} SOL. Re-run with --airdrop or fund it on devnet.")        airdrop_sig = rpc(args.url, "requestAirdrop", [str(payer.pubkey()), LAMPORTS_PER_SOL])        wait_for_confirmation(args.url, airdrop_sig)     blockhash_value = rpc(args.url, "getLatestBlockhash", [{"commitment": "confirmed"}])["value"]["blockhash"]    recent_blockhash = Hash.from_string(blockhash_value)    base_instruction = transfer(TransferParams(from_pubkey=payer.pubkey(), to_pubkey=recipient, lamports=lamports))    instruction = Instruction(        base_instruction.program_id,        base_instruction.data,        list(base_instruction.accounts) + [AccountMeta(reference, is_signer=False, is_writable=False)],    )    message = Message.new_with_blockhash([instruction], payer.pubkey(), recent_blockhash)    transaction = Transaction([payer], message, recent_blockhash)    encoded = base64.b64encode(bytes(transaction)).decode()    signature = rpc(        args.url,        "sendTransaction",        [encoded, {"encoding": "base64", "skipPreflight": False, "preflightCommitment": "confirmed"}],    )    wait_for_confirmation(args.url, signature)    print(        json.dumps(            {
  1. Line 77 blockhash_value = rpc(args.url, "getLatestBlockhash", [{"commitment": "confirmed"}])["valu: Fetches a recent blockhash. Transactions expire if it gets too old.
  2. Line 90 "sendTransaction",: Submits the signed transaction to the cluster.

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
.npm run devnext dev -p 3000
.npm run startnext start -p 3000
.npm run buildnext build

What you could build from it