Sol.College

Full lesson

ForgexAI

What it does

From the project README:

ForgexAI is a revolutionary **Solana Agent Studio** that democratizes AI-powered blockchain automation. Our platform enables users to create sophisticated Solana agents without coding, featuring visual workflow builders, comprehensive protocol integrations, and seamless AI orchestration.
Original
forgexai/ForgexAI
SuperStack fork
Blockchains/ForgexAI @ 7c418a8
Stars
0
Last push (original)
2025-12-12
Languages
TypeScript, JavaScript, CSS
Detected stack
@solana/kitNext.jsweb3.js
Categories
Other
Licence
MIT
Homepage
https://studio.forgexai.com

Architecture

140 source files. By extension: .tsx ×90, .ts ×49, .js ×1.

Top-level directorySource files
components77
app44
lib14
(root)2
hooks2
public1

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

forgexai/ForgexAI · lib/solana-wallet.ts L49–71 @ 7c418a8 · MIT · original
    const transaction = new Transaction().add(      SystemProgram.transfer({        fromPubkey: fromWallet.publicKey,        toPubkey: toPublicKey,        lamports,      })    );     // Get recent blockhash    const { blockhash } = await connection.getLatestBlockhash();    transaction.recentBlockhash = blockhash;    transaction.feePayer = fromWallet.publicKey;     // Send and confirm transaction    const signature = await sendAndConfirmTransaction(connection, transaction, [      fromWallet,    ]);    return signature;  } catch (error) {    console.error("Error sending SOL:", error);    throw new Error("Failed to send SOL transaction");  }}
  1. Line 58 const { blockhash } = await connection.getLatestBlockhash();: Fetches a recent blockhash. Transactions expire if it gets too old.
  2. Line 63 const signature = await sendAndConfirmTransaction(connection, transaction, [: 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 --turbopack
.npm run startnext start
.npm run buildnext build --turbopack
.npm run linteslint

What you could build from it

Used in lessons