LNCLI (Replit)
There may be a time when you will need to access direct control of your node through the LNCLI command line. For that, we have developed a replit tool to allow you to easily access this control to your Voltage hosted LND node. Follow the steps below to quickly access this tooling.
Visit this link to access the LNCLI replit page.
To create a Replit account, click on 'Log-in' or 'Start Building' in the upper right corner of the page if you are not already logged in. If you need to create an account, make sure to choose the FREE starter Replit account during the setup process.
After logging in, click the Green Fork button.
Next, click Fork Repl.
On the next page, click Secrets on the bottom left Tools menu.
On your Voltage node dashboard find your Node API endpoint in the Node Details information panel and click copy.
In the NODE_HOSTNAME box on replit, paste it in an add :10009 to the end. For example, it would be mynodename.m.voltageapp.io:10009.
To get your MACAROON_HEX information from your Voltage Node dashboard:
- Click Manage Access
- Click Macaroon Bakery
- Click the dropdown under "Copy" for the Admin Macaroon
- Select Hex
- Enter your node password when prompted
- Paste into the MACAROON_HEX value box on replit.
Be sure to click the blue Add Secret button for each field when the two secrets are pasted in.
Click the big green RUN button at the top of the page.
Now you can enter LNCLI commands in the console.
Try entering lncli getinfo as your first command. If it shows information about your node, you have successfully connected!
You can use lncli -h to see a list of commands.
If you experience any difficult or have any questions, you can always contact us at https://voltage.cloud/support or on our discord server at https://voltage.cloud/discord.
Disclaimer: Your access credential (admin.macaroon) is decrypted when the environment is active. When the environment is closed or inactive, your access credentials are encrypted in replit's secure secret environment. Be sure to log out or close the browser when you are done.