Command Reference
Voyager Verifier provides four main commands for contract verification and management.
Available Commands
Core Commands
-
verify- Submit contracts for verificationThe primary command for submitting your Starknet contracts for verification on Voyager. Supports interactive wizard mode, direct CLI usage, and batch verification.
-
status- Check verification job statusQuery the status of a verification job using its job ID. Supports watch mode for continuous monitoring and multiple output formats.
-
check- Check if a class is already verifiedQuery whether a contract class is already verified on Voyager before submitting a verification request. Useful for CI/CD pipelines.
-
history- Manage verification historyView, filter, and manage your local verification history database. Track past verifications, recheck pending jobs, and view statistics.
Quick Command Examples
Verify a Contract
# Interactive wizard
voyager verify --wizard
# Direct command
voyager verify --network mainnet \
--class-hash 0x044dc2b3... \
--contract-name MyToken
# Batch verification
voyager verify # Uses .voyager.toml configuration
Check Status
# One-time status check
voyager status --network mainnet --job abc-123-def
# Watch until completion
voyager status --network mainnet --job abc-123-def --watch
# JSON output for scripts
voyager status --network mainnet --job abc-123-def --format json
Check Verification
# Check if class is verified
voyager check --network mainnet --class-hash 0x044dc2b3...
# JSON output for scripts
voyager check --network mainnet --class-hash 0x044dc2b3... --json
View History
# List all verifications
voyager history list
# Filter by status
voyager history list --status success
# View statistics
voyager history stats
# Recheck pending jobs
voyager history recheck --network mainnet
Common Patterns
First-Time Verification
For users new to the tool:
voyager verify --wizard
Production Workflow
Typical production verification with all recommended flags:
voyager verify --network mainnet \
--class-hash <HASH> \
--contract-name <NAME> \
--license MIT \
--lock-file \
--watch \
--notify
CI/CD Pipeline
Automated verification without watch mode:
voyager verify --network mainnet \
--class-hash <HASH> \
--contract-name <NAME> \
--format json \
--verbose
Multi-Contract Deployment
For verifying multiple contracts:
# Define contracts in .voyager.toml
voyager verify --watch --batch-delay 5
Global Options
These options are available across all commands:
Help
Get help for any command:
voyager --help
voyager verify --help
voyager status --help
voyager history --help
Version
Check the installed version:
voyager --version
Network Selection
Most commands require network specification:
Predefined Networks
--network mainnet # Starknet mainnet
--network sepolia # Sepolia testnet
--network dev # Development network
Custom Endpoint
--url https://api.custom.com/beta
Configuration File
Set default network in .voyager.toml:
[voyager]
network = "mainnet"
Output Formats
Commands that support multiple output formats:
--format text # Human-readable (default)
--format json # Machine-readable JSON
--format table # Formatted table (for batch operations)
Common Flags
Verbosity
-v, --verbose # Show detailed error messages
Watch Mode
--watch # Monitor job until completion
Notifications
--notify # Desktop notifications (requires --watch)
Configuration Priority
Options can be specified in multiple ways. Priority order:
- CLI arguments (highest priority)
.voyager.tomlconfiguration file- Default values (lowest priority)
Example:
# .voyager.toml sets network = "sepolia"
# This command overrides to use mainnet
voyager verify --network mainnet --class-hash 0x044... --contract-name MyToken
Exit Codes
Voyager Verifier uses standard exit codes:
- 0 - Success
- 1 - General error
- 2 - Invalid arguments
- Other - Specific error conditions
Use in scripts:
if voyager verify --network mainnet --class-hash 0x044... --contract-name MyToken; then
echo "Verification submitted successfully"
else
echo "Verification submission failed"
exit 1
fi
Environment Variables
Proxy Configuration
export HTTP_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:8080
Logging
export RUST_LOG=debug # Enable debug logging
export RUST_LOG=info # Info level logging (default)
Shell Completion
Generate shell completion scripts:
# Bash
voyager completions bash > /etc/bash_completion.d/voyager
# Zsh
voyager completions zsh > /usr/local/share/zsh/site-functions/_voyager
# Fish
voyager completions fish > ~/.config/fish/completions/voyager.fish
Note: Completion support may vary by version. Check voyager --help for availability.
Next Steps
Explore detailed documentation for each command:
- verify command - Complete verification reference
- status command - Status checking reference
- check command - Check verification status reference
- history command - History management reference
For practical examples, see the Examples section.