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 directory | Source files |
|---|---|
Frontend | 115 |
Backend | 45 |
models | 18 |
blockchain | 12 |
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.
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'- Line 431
const priorityFeeIx = ComputeBudgetProgram.setComputeUnitPrice({: Sets the compute-unit limit or price (priority fee). - Line 437
const latestBlockhash = await connection.getLatestBlockhash('confirmed');: Fetches a recent blockhash. Transactions expire if it gets too old. - 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.
| Directory | Command | Runs |
|---|---|---|
Frontend | npm run dev | next dev --turbo |
Frontend | npm run start | next start |
Frontend | npm run build | next build |
Frontend | npm run lint | eslint |
blockchain/sdk | npm run dev | tsup src/index.ts --format cjs,esm --dts --watch |
blockchain/sdk | npm run build | tsup src/index.ts --format cjs,esm --dts |
blockchain/sas | npm run test | echo "Error: no test specified" && exit 1 |
blockchain/relayer | npm run dev | ts-node-dev src/index.ts |
blockchain/relayer | npm run start | node dist/index.js |
blockchain/relayer | npm run build | tsc |
What you could build from it
- Fork the SuperStack copy and extend it within the AI & Agents gaps listed on the idea page.
- Learn the pattern first: AI agents on Solana
- Learn the pattern first: Building and sending transactions from a client