Analytics Dashboard

TypeScript CLI for analyzing on-chain program transaction data

TypeScript CLI Tool
Language TypeScript
Runtime Node.js / ts-node
Dependencies @solana/web3.js

The Analytics Dashboard is a standalone TypeScript CLI tool (not an Anchor program) that fetches and analyzes on-chain transaction data for any Solana program. It provides compute unit usage, fee analysis, unique user counts, and instruction frequency breakdowns.

Usage

# Basic usage - analyze the last 100 transactions
ts-node src/index.ts <program_id>

# Custom limit
ts-node src/index.ts <program_id> --limit 500

# Custom RPC endpoint
ts-node src/index.ts <program_id> --rpc https://api.mainnet-beta.solana.com

# Full example
ts-node src/index.ts FKz12mj5HcA9wJRTmpEN2mstdat7KVrwJyy1QULaVi4J --limit 200 --rpc https://api.devnet.solana.com

Interfaces

ProgramStats

FieldTypeDescription
programIdstringThe program ID being analyzed
totalTransactionsnumberTotal transactions fetched
successCountnumberNumber of successful transactions
failureCountnumberNumber of failed transactions
uniqueUsersnumberUnique signer wallets
avgComputeUnitsnumberAverage compute units consumed per transaction
totalFeesnumberTotal fees paid in lamports
avgFeenumberAverage fee per transaction in lamports
timeRange{ start: Date, end: Date }Time range of analyzed transactions

DashboardReport

FieldTypeDescription
statsProgramStatsAggregate statistics for the program
instructionBreakdownMap<string, number>Frequency count of each instruction type
dailyActivityMap<string, number>Transaction count by date
topUsers{ wallet: string, count: number }[]Most active wallets
generatedAtDateTimestamp when the report was generated

Sample Output

=====================================
  SOLANA PROGRAM ANALYTICS DASHBOARD
=====================================

Program:  FKz12mj5HcA9wJRTmpEN2mstdat7KVrwJyy1QULaVi4J
Cluster:  devnet
Analyzed: 200 transactions

--- Overview ---
Success Rate:     94.5% (189/200)
Unique Users:     47
Time Range:       2026-01-15 to 2026-02-28

--- Compute Units ---
Average CU:       52,340
Min CU:           12,100
Max CU:           198,500

--- Fees ---
Total Fees:       0.0294 SOL
Average Fee:      5,000 lamports

--- Instruction Breakdown ---
make_offer:       82  (41.0%)
take_offer:       67  (33.5%)
cancel_offer:     40  (20.0%)
unknown:          11  ( 5.5%)

--- Top Users ---
1. 7xKX...m3Qp     34 txns
2. 9bFZ...kL2w     28 txns
3. 3vNR...pY5j     19 txns

Installation

# Clone the repository
git clone https://github.com/ExpertVagabond/solana-analytics-dashboard.git
cd solana-analytics-dashboard

# Install dependencies
npm install

# Run the CLI
npx ts-node src/index.ts <program_id>

Configuration

The CLI accepts the following command-line arguments:

FlagDefaultDescription
--limit100Number of recent transactions to fetch
--rpchttps://api.devnet.solana.comRPC endpoint URL
--jsonfalseOutput raw JSON instead of formatted text