Command-Line Installation
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.
Download the Lantern Binary
Download for your operating system from the FluxRPC Website.
Download from FluxRPCGenerate Configuration
This will generate a config file suitable for running benchmarks. You'll need to edit it and add your FluxRPC API key.
./lantern-linux-amd64 generate-config
Start Lantern
Lantern will now be accessible on localhost:8080
./lantern-linux-amd64
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 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
Note