Sol.College

Structure lesson (licence does not allow quoting code)

Blockchain_RWA_Tokanization

A Solana-based Real-World Asset (RWA) tokenization platform. Business owners tokenize real ventures and raise USDC from investors; investors earn proportional profit shares. Anchor smart contracts + Express/Supabase backend + wallet-based auth.

Original
shah65/Blockchain_RWA_Tokanization
SuperStack fork
Blockchains/Blockchain_RWA_Tokanization @ d40ea19
Stars
1
Last push (original)
2026-11-02
Languages
JavaScript, CSS, Rust, TypeScript, HTML
Detected stack
Anchorweb3.js
Categories
Wallets & IdentityInfrastructure & Tooling
Licence
none detected: code not quoted on Sol.College
Homepage
https://blockchain-rwa-tokanization.vercel.app

Architecture

67 source files. By extension: .js ×33, .jsx ×24, .rs ×9, .ts ×1.

Top-level directorySource files
frontend34
backend23
programs10

On-chain programs: programs/solana_rwa_fyp

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
init_user_profileInitUserProfileprograms/solana_rwa_fyp/src/lib.rs:20
buy_tokensBuyTokensprograms/solana_rwa_fyp/src/lib.rs:45
claim_profitClaimProfitprograms/solana_rwa_fyp/src/lib.rs:65
tokens_handlerBuyTokensprograms/solana_rwa_fyp/src/instructions/buy_tokens.rs:7
profit_handlerClaimProfitprograms/solana_rwa_fyp/src/instructions/claim_profit.rs:5
user_handlerInitUserProfileprograms/solana_rwa_fyp/src/instructions/init_user.rs:11
deposit_handlerDepositProfitprograms/solana_rwa_fyp/src/instructions/deposit_profit.rs:6

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
programs/solana_rwa_fyp/tests/test_initialize.tsPublicKey, SystemProgram, Keypair, mintTo, requestAirdrop, Program
frontend/src/config/web3.jsPublicKey, Program, findProgramAddressSync, AnchorProvider, Connection, useWallet
backend/scripts/seed.jsPublicKey, SystemProgram, findProgramAddressSync, Connection, Keypair, AnchorProvider
backend/src/config/solana.jsProgram, Connection, PublicKey, AnchorProvider
programs/solana_rwa_fyp/src/instructions/buy_tokens.rsseeds, Pubkey, CpiContext, init_if_needed, has_one, Program
frontend/src/pages/investor/MarketPlacePage.jsxPublicKey, getAssociatedTokenAddressSync, useWallet, SystemProgram
frontend/src/pages/owner/DepositProfitPage.jsxuseWallet, PublicKey, getAssociatedTokenAddressSync, SystemProgram
programs/solana_rwa_fyp/src/state.rsPubkey
programs/solana_rwa_fyp/src/instructions/create_business.rsseeds, Pubkey, init_if_needed, Program
frontend/src/components/ClaimedProfit.jsxPublicKey, useWallet
programs/solana_rwa_fyp/src/instructions/deposit_profit.rstransfer, CpiContext, seeds, Program
frontend/src/pages/owner/CreateBusinessPage.jsxuseWallet, SystemProgram

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/blockchain-rwa-tokanization/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

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
backendnpm run dev
backendnpm run start
backendnpm run test
frontendnpm run dev
frontendnpm run build
frontendnpm run lint
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it