Interactive UI - Automatic Testing Interface for Solana Anchor Programs
Overview
Section titled “Overview”Testship automatically generates a beautiful, intuitive testing interface for any Anchor program. Zero configuration, no boilerplate code - just instant access to all your program’s instructions, accounts, and parameters. Built with React, TypeScript, and shadcn/ui for a modern, responsive experience.
Key Features
Section titled “Key Features”Automatic Interface Generation
Section titled “Automatic Interface Generation”When you launch Testship, it:
- Reads your program’s IDL - Automatically detects IDL from
target/idl/*.json - Analyzes all instructions - Parses parameters, accounts, and relationships
- Generates forms instantly - Creates type-safe input fields with validation
- Displays account requirements - Shows signer/writable badges and PDA indicators
Smart Form Inputs
Section titled “Smart Form Inputs”The UI automatically determines the appropriate input type for each parameter:
- Public Keys: Validated address inputs with autocomplete from saved accounts
- Numbers (u8, u16, u32, u64, i8, i16, i32, i64): Range-validated numeric inputs
- Strings: Text inputs with proper encoding support
- Booleans: Toggle switches for true/false values
- Complex Types: Nested forms for structs (coming soon)
Real-Time Validation & Feedback
Section titled “Real-Time Validation & Feedback”As you interact with the UI:
- ✅ Input validation happens in real-time with clear error messages
- 🔄 Live PDA derivation shows when addresses are being calculated
- ⚡ Instant feedback for missing dependencies and invalid inputs
- 🎯 Context-aware suggestions based on account type and usage history
- 💾 Auto-save - Form data persists across sessions in localStorage
Transaction History & Management
Section titled “Transaction History & Management”After executing an instruction:
- Transaction signature with one-click copy and Explorer link
- Status badges - Success (green), Error (red), or Pending (yellow)
- Detailed logs - Full transaction logs with expand/collapse
- Filter & search - Find past transactions by status or instruction
- Replay functionality - Quickly re-run previous transactions
- Persistent history - Saved locally, up to 100 most recent transactions
Example Workflow
Section titled “Example Workflow”- Search & Select - Use Ctrl+K to quickly find any instruction
- Auto-filled Accounts - Signer accounts auto-populated from connected wallet
- Smart Suggestions - Account fields show recently used addresses
- Fill Arguments - Type-validated inputs with inline error messages
- Watch PDAs Derive - See real-time PDA calculation with loading states
- Execute Transaction - One-click execution with Solana wallet confirmation
- Track Results - View signature, logs, and status in transaction history
Built-in Utility Tools
Section titled “Built-in Utility Tools”Access powerful conversion tools without leaving the UI:
🕐 Timestamp Converter
Section titled “🕐 Timestamp Converter”- Convert dates/times to Unix timestamps (seconds & milliseconds)
- “Set to Current Time” button for quick timestamps
- Essential for time-locked instructions
💰 Lamports Converter
Section titled “💰 Lamports Converter”- Convert SOL amounts to lamports (and back)
- Supports custom token decimals (6, 9, etc.)
- Real-time conversion as you type
📝 String Encoder
Section titled “📝 String Encoder”- Encode strings to byte arrays for PDA seeds
- Decode byte arrays back to strings
- Bidirectional conversion mode
⏱️ Duration Picker
Section titled “⏱️ Duration Picker”- Build durations from days, hours, minutes, seconds
- Instant conversion to total seconds (i64)
- Quick presets (1 hour, 1 day, 1 week, 30 days)
Benefits
Section titled “Benefits”- Zero Setup - No test scripts, no configuration files
- Lightning Fast - Test iterations in seconds, not minutes
- Visual Debugging - See exactly what’s happening on-chain
- Team Friendly - Share sessions with non-developers
- Professional Tools - Built-in utilities for common Solana operations
- Modern UX - Responsive design, dark mode, keyboard shortcuts
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”- Ctrl+K (Cmd+K) - Quick search for instructions
- Ctrl+Enter - Execute current instruction
- Ctrl+R (Cmd+R) - Refresh IDL manually
Supported Wallets
Section titled “Supported Wallets”Works seamlessly with:
- Phantom
- Solflare
- Backpack
- Metamask Snap
- All Solana Wallet Adapter compatible wallets
Next Steps
Section titled “Next Steps”Learn how Testship automatically handles complex PDAs in PDA Derivation.