Sol.College

Full lesson

Credlayer

AI-powered reputation and risk intelligence for Web3 wallets, protocols, and autonomous agents.

What it does

From the project README:

CredLayer is a B2B infrastructure platform that analyzes on-chain activity, wallet behavior, and transaction patterns to produce explainable reputation and risk assessments.
Original
credlayer/Credlayer
SuperStack fork
Blockchains/Credlayer @ 3241e14
Stars
1
Last push (original)
2026-10-15
Languages
TypeScript, Python, JavaScript, CSS, PLpgSQL, Dockerfile
Detected stack
@solana/kitNext.jsweb3.js
Categories
AI & AgentsWallets & Identity
Licence
MIT
Homepage
https://credlayer1.vercel.app

Architecture

190 source files. By extension: .tsx ×77, .py ×63, .ts ×47, .js ×3.

Top-level directorySource files
Frontend115
Backend45
models18
blockchain12

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

credlayer/Credlayer · blockchain/relayer/src/index.ts L421–444 @ 3241e14 · MIT · original
            authority: issuer.publicKey.toBase58() as any,            credential: credentialPda.toBase58() as any,            schema: schemaPda.toBase58() as any,            nonce: wallet.toBase58() as any,  // ✅ CONSISTENT: wallet.toBase58()            attestation: attestationPda.toBase58() as any,            data: dataPayload as any,            expiry: 0n,        });         const v1Ix = toV1Instruction(v2Ix);        const priorityFeeIx = ComputeBudgetProgram.setComputeUnitPrice({            microLamports: 100000,        });         const tx = new Transaction().add(priorityFeeIx, v1Ix);         const latestBlockhash = await connection.getLatestBlockhash('confirmed');        tx.recentBlockhash = latestBlockhash.blockhash;        tx.feePayer = issuer.publicKey;         console.log(`[ISSUE-${requestId}] TRACE: Sending transaction...`);        const txId = await connection.sendTransaction(tx, [issuer], {            skipPreflight: false,            preflightCommitment: 'confirmed'
  1. Line 431 const priorityFeeIx = ComputeBudgetProgram.setComputeUnitPrice({: Sets the compute-unit limit or price (priority fee).
  2. Line 437 const latestBlockhash = await connection.getLatestBlockhash('confirmed');: Fetches a recent blockhash. Transactions expire if it gets too old.
  3. Line 442 const txId = await connection.sendTransaction(tx, [issuer], {: 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
Frontendnpm run devnext dev --turbo
Frontendnpm run startnext start
Frontendnpm run buildnext build
Frontendnpm run linteslint
blockchain/sdknpm run devtsup src/index.ts --format cjs,esm --dts --watch
blockchain/sdknpm run buildtsup src/index.ts --format cjs,esm --dts
blockchain/sasnpm run testecho "Error: no test specified" && exit 1
blockchain/relayernpm run devts-node-dev src/index.ts
blockchain/relayernpm run startnode dist/index.js
blockchain/relayernpm run buildtsc

What you could build from it

Used in lessons