How to send and receive Bitcoin payments via the Lightning Network on Android

in #bitcoin6 years ago (edited)

Today I have decided to explore how far we are in the development of the Lightning Network (LN) and to find out if 'normal' people can use it too.
lightning.jpg
Let's start with some prerequisites first:

  1. By 'normal' people I think people who own Bitcoin and know how to send a Bitcoin transaction.
  2. You need to have an Android phone.
  3. And that's it!

My goal was to create two LN nodes so I could send transactions between them. To try what's out there I found and installed two LN-ready bitcoin wallets. The first is Eclair Wallet and the other is Bitcoin Lightning Wallet. Now I know that Eclair Wallet can be used only for outgoing LN transactions (so far) and Bitcoin Lightning Wallet can handle both. I recommend you to go through the Eclair Wallet's FAQ and the Bitcoin Lightning Wallet's website to avoid potential problems.

So let's get you involved:

(1) Install the two wallets.

(2) Back up the seeds!

(3) Send at least 0.0011 BTC (110000 Satoshi) to Eclair Wallet

You need 100000 Satoshi to open a new LN channel in Eclair Wallet plus 10000 Satoshi to have some budget for miner fees.

yourbitcoinaddres_3middle.png

Use your own address!

TIP: I use Google Keep to share addresses between Android and Desktop

(4) Send at least 0.0031 BTC (310000 Satoshi) to Bitcoin Lightning Wallet

You need 300000 Satoshi to open a new LN channel in Bitcoin Lightning Wallet plus 10000 Satoshi to have some budget for miner fees.

3_receiveBitcoin.jpg

(5) Open a new LN channel in Eclair Wallet

  1. Connect to ACINQ node. (This is the easy way, but if you want to connect to another node you can visit LN explorer and click on any node there and copy paste its URI to the wallet.) By the way, ACINQ is a company developing LN (eclair implementation).
  2. Fill 100000 (or 0.001) into channel capacity field (default unit is BTC but I changed it to Satoshi [sat] in settings)
  3. Click on "Open"

4_eclair_creatingChannel.jpg

(6) Open a new LN channel in Bitcoin Lightning Wallet

The wallet will automatically send 1000 sat to Olympus server (a helper service for Lightning stuff) more info is here.
1. Connect to ACINQ node again
2. Fill 300000 into channel capacity field
3. Click on "NEXT"
4. Choose the fee and pay

5_lightningWallet_openChannel4.jpg

(7) Wait for 3 confirmations to be able to send funds and for 6 confirmations to be able to receive funds (yeah it will take an hour)

(8) While you are waiting look here for the sites accepting LN payments

(9) Within half an hour 3 confirmations should be complete and LN channels should be ready to use

First we are going to focus on Bitcoin Lightning Wallet. In order to receive Lightning payments, some conditions must be met. The important thing for us is that over 2% of the funds must be spent to make receiving possible (read more details here). By spending some funds, 'room' for incoming funds is made. In our case we must spend over 6000 sat, 1000 sat was already spent on Olympic server services so let's spend some more.

I have chosen three services accepting LN payments:

Quote From Me

Quotefrom.me is a service to share your wisdom or simply to try the LN in practice. You pay 1337 sat for a post and then you can share it via Twitter. Awesome!

  1. Write your quote and click "Add"
    quoteFromMe.PNG

  2. Scan the LN invoice and pay
    sendingPayment.jpg

Payment is accepted immediately! And you can share the wisdom on Twitter like me:

"Discipline must be a habit so ingrained that it is stronger than the excitement of the goal or the fear of failure." - Gary Ryan Blair #Leetning #QuoteFromMe #LightningNetwork #InteractWithLightning via @leetning

Try And Thrive⚡ (@tryandthrive) August 3, 2018

Lightning Conductor

Lightningconductor.net is a great service to transfer funds between LN channel and Bitcoin address. Thanks to this we don't have to spend those funds (to make a room for incoming funds) but transfer them back to our Bitcoin address.

  1. Fill your Bitcoin address and the amount you want to transfer
    LightningConductor.PNG

  2. Scan the LN invoice and pay

Bitcoin appeared in my wallet almost instantly!

conductortrnsactiopns_3.png

Lightning Spin

I couldn't help my gambling heart! Lightningspin.com is a bitcoin gambling game that lives on top of the LN. It is the best for experimenting with the LN. You can send instant micro-transactions repeatedly and when you win you create your own LN invoice to receive the winnings.

  1. Choose your wager and target
    LightningSpin.PNG

  2. Click on "Spin" button

  3. Scan and Pay

  4. Repeat until you win

  5. I wish you a better luck than I had!
    spinsnoluck.png

  6. To receive the winnings click on "Withdraw"
    LightningSpinWin.jpg

  7. Create an invoice
    receivingPayment.jpg

  8. Paste the invoice to the field on the Lightning Spin website
    spinWithdraw.PNG

  9. Withdraw your winnings

Payment is received instantly!
Awesome! Awesome! Awesome!

(10) We have spent enough funds already so now we can open Eclair Wallet and try to send really tiny amounts of Bitcoin.

  1. To send amounts like 1 sat you will have to go to settings and disable "Cap Lightning fees"
  2. Open Bitcoin Lightning Wallet and click on "Receive funds" -> "Lightning payment"
  3. Fill 1 sat and click "OK"
  4. Tap on QR code to copy the invoice
  5. Open Eclair Wallet and click on "PASTE A PAYMENT REQUEST"
  6. Pay

tinyPayments.jpg

I paid 2 sat in total. The additional 1 sat was paid as a routing fee. Payment was settled instantly!

Conclusion

It has been so fun! Honestly, I am very surprised how easy it is to use the Lightning Network on Android. Well done!

Sort:  

Thank you for your post. :) I have voted for you: 🎁! To call me just write @contentvoter in a comment.

Thank you for your vote @contentvoter!

Very complex for me. Lightning network is supposed to be very inexpensive and quick. According to what I just read it is very difficult to process. I do not understand how a basic person like me can make a payment through an android device following these instructions. It is just very complex.

Thank you for your comment @caranax! After you open the Lightning Network channel then Lightning Network payments are instant and very very inexpensive. To open the LN channel you have to send required amount of Bitcoin to your LN node. This cost and take time like a normal Bitcoin transaction. When you decide to close the LN channel, the Bitcoin balance on your LN node will be transferred back to your wallet. I think if you will follow the steps you should be able to make a LN payment but of course the Bitcoin and Lightning Network are very complex technologies. Good luck!

Very good article nuce information

Posted using Partiko Android

Congratulations @tryandthrive! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

@tryandthrive, I do not understand anything written

Hello @surikowstepanuk! Thank you for your comment. Is it not understandable from technical point of view?

This post was resteemed by @steemvote and received a 99.6% Upvote. Send 0.5 SBD or STEEM to @steemvote

PRICES HAVE CHANGED TO 0.150 and 0.151!!!
NEW TIER UPVOTES user guide



Current price is 0.150 or 0.151 SBD for 200%, 250%, or 300% upvote based on tier level.

200% ($0.30) - Bronze Level - No requirements
250% ($0.37) - Silver Level - SteemAuto Upvote of 100% or $0.02 (whichever is possible)
300% ($0.45) - Gold Level - SteemAuto Upvote of 100% or $0.02 AND 50 SP delegation

All delegators make a "striking" return on your investment!
50 SP --- 100 SP --- 200 SP --- 500 SP --- 1000 SP

That being said...

BOOOOOOOOOM!!!

The ground shakes as incredible power lights the sky. The thunder tests the quality of your post and deems it worthy, rewarding it with an upvote and comment from @thundercurator.

Investors who delegate SP to @thundercurator are entitled to 75% of @thundercurator income after curation. Get on-board early and grow with us!

Coin Marketplace

STEEM 0.31
TRX 0.12
JST 0.034
BTC 64742.01
ETH 3172.49
USDT 1.00
SBD 4.10