Documentation

Complete guide to using SolanaForge for testing, simulation, and security analysis of Solana programs.

Getting Started

// Clone the repository
git clone https://github.com/Ekpemark/SolanaForge.git
cd SolanaForge

// Install dependencies (frontend + backend)
cd frontend && npm install
cd ../packages/api && npm install

// Start development servers
cd ../frontend && npm run dev
cd ../packages/api && npm run dev

// Or with Docker
cd docker
docker-compose up -d

API Endpoints

Environment Management

POST /api/environment/start-validator
GET /api/environment/status
POST /api/environment/stop-validator
GET /api/environment/wallets
POST /api/environment/wallets/create
POST /api/environment/import-anchor

Transaction Simulator

POST /api/simulator/simulate
POST /api/simulator/fee-estimate
POST /api/simulator/account-changes
POST /api/simulator/decode-instructions

Debug Dashboard

GET /api/debug/stats
GET /api/debug/transaction/:signature
GET /api/debug/account/:pubkey
GET /api/debug/logs/:signature

Security Testing

POST /api/security/analyze
POST /api/security/validate-pda
POST /api/security/validate-ownership

AI Assistant

POST /api/ai/explain-error
POST /api/ai/explain-logs

Configuration

# Environment variables
PORT=3000
OPENAI_API_KEY=your-api-key-here
DB_HOST=localhost
DB_PORT=5432
DB_NAME=solanaforge
DEFAULT_RPC_URL=http://localhost:8899

Docker Deployment

cd docker
docker-compose up -d

# Services:
# - API: http://localhost:3000
# - Frontend: http://localhost:3001
# - PostgreSQL: localhost:5432
# - Rust Analyzer: http://localhost:3002