solana-cost-analyzer
v1.0.7
Published
Solana program cost analysis tool - get deployment and transaction cost estimates
Maintainers
Readme
Solana Cost Analyzer
Command-line tool for analyzing Solana program deployment and transaction costs with real-time network data.
Installation
npm install -g solana-cost-analyzerUsage
# Initialize (one-time setup)
cost-analyzer init
# Analyze your program
cost-analyzer analyze
# Get results
cost-analyzer get <analysis-id>How It Works
- Upload your compiled .so file for analysis
- Backend calculates costs using live Solana network rates
- Results stored on-chain and retrieved when ready
Requirements
- Solana CLI installed and configured
- Anchor project with compiled programs
Example
cd my-solana-project
anchor build
cost-analyzer init
cost-analyzer analyze my-program
cost-analyzer get 1703123456789Output:
=== Cost Analysis Results ===
Program: my-program
Deployment Cost: 487,238,640 lamports (0.4872 SOL)
Transaction Cost: 5,000 lamports (0.000005 SOL)
Daily Projection (100 txs): 500,000 lamports (0.0005 SOL)