Sol.College

Full lesson

FraudBusters

Preventing AI Image Insurance Fraud

What it does

From the project README:

Know a claim photo is real before you pay it. We don't try to spot fake insurance-claim photos. We prove the real ones, on a shared Solana record no single insurer controls.
Original
EmuCS/FraudBusters
SuperStack fork
Blockchains/FraudBusters @ 600c70b
Stars
0
Last push (original)
2026-10-12
Languages
JavaScript, HTML, CSS
Detected stack
Solana Payweb3.js
Categories
AI & Agents
Licence
MIT

Architecture

17 source files. By extension: .js ×17.

Top-level directorySource files
src9
scripts5
public2
test1

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/fraudbusters/. 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.

EmuCS/FraudBusters · src/solana.js L1–24 @ 600c70b · MIT · original
import fs from 'node:fs';import path from 'node:path';import {  Connection,  Keypair,  PublicKey,  Transaction,  TransactionInstruction,  sendAndConfirmTransaction,} from '@solana/web3.js';import {  getMint,  getAssociatedTokenAddressSync,  createAssociatedTokenAccountIdempotentInstruction,  createTransferCheckedInstruction,} from '@solana/spl-token';import { RPC_URL, CLUSTER, KEYS_DIR } from './config.js'; export const MEMO_PROGRAM_ID = new PublicKey('MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr');export const connection = new Connection(RPC_URL, 'confirmed'); export function keyPath(name) {  return path.join(KEYS_DIR, `${name}.json`);}
  1. Line 9 sendAndConfirmTransaction,: Submits the signed transaction to the cluster.
  2. Line 15 createTransferCheckedInstruction,: A checked token transfer, which also verifies the mint and decimals.

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 devnode --env-file-if-exists=.env --watch src/server.js
.npm run startnode --env-file-if-exists=.env src/server.js
.npm run testnode --test "test/*.test.js"

What you could build from it

Used in lessons