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. No configuration, no boilerplate code - just instant access to all your program’s instructions and accounts.
Key Features
Section titled “Key Features”Automatic Interface Generation
Section titled “Automatic Interface Generation”When you launch Testship, it:
- Reads your program’s IDL (Interface Definition Language)
- Analyzes all instructions and their parameters
- Generates a fully functional UI with proper input fields
- Displays account requirements and types
Smart Form Inputs
Section titled “Smart Form Inputs”The UI automatically determines the appropriate input type for each parameter:
- Public Keys: Special input with validation and copy/paste support
- Numbers: Numeric inputs with proper range validation
- Strings: Text inputs with length constraints
- Booleans: Toggle switches
- Enums: Dropdown selectors with all available options
- Complex Types: Nested forms for structs and custom types
Real-Time Feedback
Section titled “Real-Time Feedback”As you interact with the UI:
- Input validation happens in real-time
- Error messages guide you to correct issues
- Transaction status updates appear immediately
- Success/failure states are clearly indicated
Transaction Details
Section titled “Transaction Details”After executing an instruction, you’ll see:
- Transaction signature
- Block confirmation status
- Account state changes
- Program logs
- Error details (if any)
Example Workflow
Section titled “Example Workflow”- Select Instruction: Click on any instruction from the sidebar
- Fill Parameters: Enter required values in the auto-generated form
- Select Accounts: Choose from suggested accounts or enter custom ones
- Execute: Click the “Execute” button to send the transaction
- View Results: See transaction details and updated account states
Benefits
Section titled “Benefits”- Zero Setup: No need to write test scripts
- Visual Testing: See your program in action immediately
- Quick Iteration: Test changes faster than traditional methods
- Non-Developer Friendly: Share with team members who don’t code
- Comprehensive: Access all instructions and accounts in one place
Advanced Features
Section titled “Advanced Features”Account Inspector
Section titled “Account Inspector”Click on any account to inspect:
- Current state and data
- Owner program
- Balance
- Rent status
Batch Operations
Section titled “Batch Operations”Execute multiple instructions in sequence:
- Queue up instructions
- Configure parameters for each
- Execute as a single transaction or separately
Transaction History
Section titled “Transaction History”View all past transactions:
- Timestamps
- Success/failure status
- Parameters used
- Quick replay functionality
Next Steps
Section titled “Next Steps”Learn how Testship automatically handles complex PDAs in PDA Derivation.