Lantern - Command-Line Installation
Install Lantern as a command-line application for more control with a direct binary setup workflow.
Lantern as a Command-Line Application
After you launch the application, if no config file is found, you will be prompted to visit https://configurator.fluxrpc.com/ to build a configuration file before continuing to launch Lantern.
Quick Start
This will start Lantern, pre-configured to load a small, inactive DEX (2wT8Yq49kHgDzXuPxZSaeLaH1qbmGXtEyPy64bL7aD3c). This is a good way to test Lantern out for the first time, as it will not consume much bandwidth.
1
Download the Lantern Binary
Download for your operating system from the FluxRPC Website.
Generate Configuration
This will generate a config file suitable for running benchmarks. You'll need to edit it and add your FluxRPC API key.
Shell
./lantern-linux-amd64 generate-config
3
Start Lantern
Lantern will now be accessible on localhost:8080
Shell
./lantern-linux-amd64
The filename of the executable may differ depending on your operating system. You may need to mark it as executable, e.g. with chmod +x lantern-linux-amd64
Run a Quick Test
This should respond very quickly , it's a request for an account belonging to the DEX in the config file:
cURL
curl http://localhost:8080 -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAccountInfo",
"params": [
"3vDszXV9ei8cqmCw697L2MtPecfDqgnbdxLYmKjemZEp",
{
"encoding": "base64"
}
]
}'
Next Steps
Run Benchmarks
Test Lantern's performance
Example Config Files
View pre-built configurations
Note
Lantern will need to be able to receive inbound traffic on port 8080, 8081 and 8090, and send outbound traffic to the Internet on ports 443, 8080 and 8081.
Open the section overview for the broader context, live navigation, and interactive code examples.
Continue in this section
- Lantern - Example Configuration Files — Pre-built Lantern configuration files for common use cases such as benchmarks, DEX indexing, and memecoin tracking.
- Lantern - Configuration (Local) — Configure Lantern for local deployment with the web configuration tool or a manual JSON configuration file.
- Lantern - Web Configuration Tool — Use the Lantern web configuration tool to configure, test, and benchmark your Lantern instance from the browser.
- Lantern - Configuration (Remote) — Configure Lantern for remote server deployment with Docker or direct binary installation on managed infrastructure.
- Lantern - WebSocket Support — Lantern supports Solana WebSocket methods for real-time account and program subscriptions on a local caching stack.
- Lantern - Yellowstone gRPC Support — Lantern supports Yellowstone gRPC for efficient account and owner subscriptions with reduced bandwidth usage.