Skip to content

Programatic steps to setup a Lightning Network node by Voltage API on their cloud

Notifications You must be signed in to change notification settings

bluebycode/voltage-node-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voltage.cloud - Setup and unlock a Lightning Network node on cloud. Simple steps suggested 
from Voltage.cloud to setup a node by Voltage API and LND API.

Requirements:
- Node.js installed on your system.
- Create an API KEY from [https://account.voltage.cloud/api-keys](https://account.voltage.cloud/api-keys).
- An `.env` file in your project's root directory containing your `API_KEY`.Use the .env-sample as template.

Scripts:
node voltage-unlock.js --node <node-id> [--macaroon-path <path-to-encrypted-macaroon>] [--seed-path <path-to-encrypted-seed>]

Steps:
# Setup the node
$ node voltage-add.js
➜ 
Creating your node...
Using the apikey: XXXXXXXXXX
Created the node: ebafbd83-b3c6-4cb6-8e4d-b452123246e8N
Found node's status of provisioning
Found node's status of provisioning
Found node's status of provisioning
Found node's status of provisioning
Found node's status of waiting_init
Got seed phrase: ability,.......,alone
Initializing wallet with password: XXXXXXXXXXXXXXXXXX
Got Node's Macaroon: AgE...HuA=
Successfully created your node!
Saved encrypted macaroon under macaroons/encrypted.seed
Saved encrypted macaroon under macaroons/encrypted.macaroon

# Files would be under macaroons/{encrypted.macaroon, seed.encrypted}
$ node voltage-unlock.js -n ebafbd83-b3c6-4cb6-8e4d-b452123246e8N \
             -m macaroons/encrypted.macaroon \
             -s macaroons/encrypted.seed 
➜  
Seed path: macaroons/encrypted.seed
Uploading the macaroon to your node...
Uploaded macaroon
Uploaded seed

References:
- Voltage: Creating a node. https://docs.voltage.cloud/api/creating-a-node-example

About

Programatic steps to setup a Lightning Network node by Voltage API on their cloud

Topics

Resources

Stars

Watchers

Forks