The Lightning Network is a protocol layer built on top of Bitcoin that enables instant transactions with significantly lower fees.
Instead of transactions being recorded on the main Bitcoin blockchain, the Lightning Network allows users to create payment channels directly between each other, that are later settled on the blockchain when necessary.
Through the use of Blink API from Galoy we can configure our own wallet with access to the Lightning Network in the Lamassu Admin.
Signing up for Blink
Visit the Blink API Dashboard and create an account with your phone number.
Creating an API Key
Login to your new Blink account and click on 'API Keys' on the menu sidebar to the left and create your first API Key by clicking on the '+' blue icon
Pick any name for your API key and configure it following the settings below:
Hit 'Create' and copy the first token that'll pop up in a window similar to this one and secure it safely:
Obtaining your Wallet ID
You can easily find your Wallet ID on the Blink API dashboard 'Home' page. You'll see two different wallet IDs there. Copy the one corresponding to the BTC wallet as per the example below and save it.
Adding credentials to the Lamassu Admin
On your Lamassu Admin, head over to 'Settings > 3rd Party Services', go to the Galoy box, and click the edit icon.
Paste the first token from the API Key from Blink onto 'API Secret' in the Admin making sure no extraneous spaces are added. Set the Environment and Endpoint to the following:
- Environment: prod
- Endpoint: https://api.blink.sv/graphql
Paste the previously copied Wallet ID that's found on the Blink API dashboard onto the Admin's Wallet ID section and once all of this is done, hit Save changes.
Configuring Lightning Network and adding it to Locales
Now that Blink/Galoy is configured for Lightning Network, all there's left to do is configure it in the Admin and add it to 'Locales', which will consequentely enable it on the machine side.
On your Lamassu Admin head over to 'Settings > Wallet' and edit Lightning Network according to your desired settings for it (Ticker, Exchange, etc).
When done, head over to 'Settings > Locales', click on the edit icon to the right and under 'Crypto Currencies' add 'LN' and hit 'Save' to the right
This should now effectively enable Lightning Network and have everything ready for use. You can confirm it by checking if you can see your LN balance at 'Maintenance > Funding' in your Lamassu Admin.
Comments
0 comments
Article is closed for comments.