Configuration Guide
Solana Insider Monitor is highly configurable to suit your monitoring needs. This guide explains all configuration options and how to use them effectively.
Configuration File Format
Solana Insider Monitor uses a JSON configuration file. By default, it looks for config.json
in the current directory.
Here's the complete configuration file structure with all available options:
{
"network_url": "https://api.mainnet-beta.solana.com",
"wallets": [
"WALLET_ADDRESS_1",
"WALLET_ADDRESS_2"
],
"scan_interval": "1m",
"scan": {
"scan_mode": "all",
"include_tokens": [],
"exclude_tokens": []
},
"wallet_configs": {
"WALLET_ADDRESS_1": {
"scan": {
"scan_mode": "whitelist",
"include_tokens": [
"TOKEN_MINT_ADDRESS_1",
"TOKEN_MINT_ADDRESS_2"
],
"exclude_tokens": []
}
}
},
"alerts": {
"minimum_balance": 1000,
"significant_change": 0.20,
"ignore_tokens": [
"TOKEN_MINT_ADDRESS_1"
]
},
"discord": {
"enabled": false,
"webhook_url": "https://discord.com/api/webhooks/your-webhook-url",
"channel_id": "your-channel-id"
}
}
Configuration Options
-
Network URL
Solana RPC endpoint URL for connecting to the blockchain.
-
Wallets
List of Solana wallet addresses to monitor.
-
Scan Configuration
Control which tokens are monitored with scan modes.
-
Alerts
Configure alert thresholds and filter settings.
-
Discord
Discord webhook integration for notifications.
Using Configuration Files
Loading a Custom Configuration File
You can specify a custom configuration file path:
Hot Reloading
Solana Insider Monitor supports hot reloading of configuration changes. When running with the web interface, you can update the configuration through the UI, and changes will be applied without requiring a restart.
Environment Variables
You can override configuration file settings with environment variables:
Environment Variable | Maps to | Example |
---|---|---|
NETWORK_URL | network_url | export NETWORK_URL="https://api.mainnet-beta.solana.com" |
SCAN_INTERVAL | scan_interval | export SCAN_INTERVAL="30s" |
ADMIN_PASSWORD | Web UI password | export ADMIN_PASSWORD="secure-password" |
DISCORD_WEBHOOK_URL | discord.webhook_url | export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/..." |
MIN_BALANCE | alerts.minimum_balance | export MIN_BALANCE="500" |
SIGNIFICANT_CHANGE | alerts.significant_change | export SIGNIFICANT_CHANGE="0.1" |
Example Configurations
Basic Monitoring
{
"network_url": "https://api.mainnet-beta.solana.com",
"wallets": ["YOUR_WALLET_ADDRESS"],
"scan_interval": "5m",
"scan": {
"scan_mode": "all",
"include_tokens": [],
"exclude_tokens": []
},
"alerts": {
"minimum_balance": 1000,
"significant_change": 0.20,
"ignore_tokens": []
},
"discord": {
"enabled": false,
"webhook_url": "",
"channel_id": ""
}
}
Advanced Configuration
{
"network_url": "https://api.mainnet-beta.solana.com",
"wallets": [
"WALLET_ADDRESS_1",
"WALLET_ADDRESS_2"
],
"scan_interval": "1m",
"scan": {
"scan_mode": "blacklist",
"include_tokens": [],
"exclude_tokens": [
"DUST_TOKEN_ADDRESS_1",
"DUST_TOKEN_ADDRESS_2"
]
},
"wallet_configs": {
"WALLET_ADDRESS_1": {
"scan": {
"scan_mode": "whitelist",
"include_tokens": [
"So11111111111111111111111111111111111111112",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"exclude_tokens": []
}
}
},
"alerts": {
"minimum_balance": 500,
"significant_change": 0.10,
"ignore_tokens": [
"USDC_MINT_ADDRESS",
"USDT_MINT_ADDRESS"
]
},
"discord": {
"enabled": true,
"webhook_url": "https://discord.com/api/webhooks/your-webhook-url",
"channel_id": "your-channel-id"
}
}
Configuration via Web Interface
When running with the -web
flag, you can configure the monitor through the web interface:
- Navigate to
http://localhost:8080/config
- Log in with your credentials
- Modify settings through the UI
- Save changes, which will be applied immediately
Configuration Best Practices
- Start Small: Begin with a few important wallets before scaling up
- Tune Alert Thresholds: Adjust
minimum_balance
andsignificant_change
to reduce noise - Secure Sensitive Information: Use environment variables for webhook URLs and passwords
- Regular Updates: Review and update your configuration as monitoring needs change
- Use Meaningful Comments: Add comments to your configuration for team collaboration
Next Steps
- Network Settings - Configuring network connections
- Wallet Settings - Managing wallet monitoring
- Scan Configuration - Controlling which tokens are monitored
- Alert Settings - Customizing alert thresholds
- Discord Integration - Setting up Discord notifications