Sol.College

Structure lesson

agentic-wallet

What it does

From the project README:

PAW (PocketAgent Wallet) is a specialized wallet infrastructure designed for AI agents to autonomously manage crypto assets and interact with DeFi protocols. Unlike traditional wallets built for humans, PAW enables AI agents to hold funds, execute transactions, and participate in DeFi—all without manual approval for every action.
Original
thejamesnick/agentic-wallet
SuperStack fork
Blockchains/agentic-wallet @ 5f6f1fa
Stars
1
Last push (original)
2026-06-02
Languages
TypeScript, JavaScript, Shell
Detected stack
web3.js
Categories
AI & AgentsWallets & Identity
Licence
MIT

Architecture

46 source files. By extension: .ts ×45, .js ×1.

Top-level directorySource files
src36
tests7
examples2
(root)1

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
tests/signer.test.tsKeypair, Transaction, SystemProgram, transfer
src/cli/commands/send.tsTransaction, PublicKey, transfer, SystemProgram, createTransferInstruction
tests/cli.test.tsKeypair, PublicKey, transfer, getBalance
src/core/signer/engine.tsTransaction, Keypair, Connection, signTransaction, getLatestBlockhash
src/cli/commands/multi-send.tsPublicKey, Transaction, SystemProgram, transfer, getBalance, sendTransaction
src/utils/solana.tsConnection, getBalance, PublicKey
src/core/wallet/manager.tsKeypair, PublicKey
src/cli/commands/swap.tsgetAssociatedTokenAddress, PublicKey, getBalance
src/core/storage/encryption.tsKeypair
tests/utils.test.tsgetBalance, Keypair
src/cli/commands/sell.tsgetAssociatedTokenAddress, PublicKey
src/cli/commands/balance.tsPublicKey, getBalance

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/agentic-wallet/. 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
.npm run devtsc --watch
.npm run startnode dist/cli/index.js
.npm run buildtsc
.npm run testjest
.npm run linteslint src/**/*.ts

What you could build from it

Used in lessons