Author

Topic: How can I connect lightning network wallet to main blockchain? (Read 201 times)

hero member
Activity: 924
Merit: 5943
not your keys, not your coins!
How will I now connect my wallet or will the wallet automatically connected main blockchain?
You can not if I am not wrong.
Because Lightning Network is a second layer solution so it does not connect directly to the layer 1, Bitcoin network.
You are connected to the blockchain in terms of creating a channel opening (and closing) transaction that are broadcasted and saved on the blockchain.
It's also required to monitor the mempool for cheating attempts, therefore running a Bitcoin Core node on the same machine is usually required.
sr. member
Activity: 602
Merit: 387
Rollbit is for you. Take $RLB token!
How will I now connect my wallet or will the wallet automatically connected main blockchain?
You can not if I am not wrong.

Because Lightning Network is a second layer solution so it does not connect directly to the layer 1, Bitcoin network.

What you do on Lightning Network is by Lightning Network channels.

LightNing Network Summary
Quote
The Lightning Network solves these problems. It is one of the first implementations of a multi-party Smart Contract
(programmable money) using bitcoin's built-in scripting. The Lightning Network is leading technological development in
multiparty financial computations with bitcoin

LightNing Network Wiki
Quote
Lightning enables quick, cheap and scalable Bitcoin payments. The Lightning Network scales blockchains and enables trust-minimized instant payments by keeping most transactions off-chain and leveraging the security of the underlying blockchain as an arbitration layer.

Correct me if I am wrong. Thank you.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
If I decided to be using lightning network channel, after I have gotten my appropriate wallet for it. How will I now connect my wallet or will the wallet automatically connected main blockchain?
So you haven't decided yet?
If so, you can try it without spending anything using a testnet wallet which you can fund through testnet faucets.
There's a tutorial in Beginners and Help board about setting up an LN Channel in testnet: [Tutorial] How to create Lightning Network Channel (Testnet BTC)
In that tutorial, the site where you'll purchase some "virtual coffee" is connected to Lightning network (Bitcoin testnet).
There's also a link below that post to a beginners' guide to Lightning Network which is worth the read if you really want to try LN.

Secondly must recipient also be on lightning network channel before the transaction can take place.?
The recipient's invoice looks entirely different than a Bitcoin address/invoice.

It would also be great if you can reply (unlike in your other topics where you just left some questions) with your experience after testing LN yourself  ;)
legendary
Activity: 1876
Merit: 3139
If I decided to be using lightning network channel, after I have gotten my appropriate wallet for it. How will I now connect my wallet or will the wallet automatically connected main blockchain?

Every Lightning-compatible wallet has its own Bitcoin wallet. You have to fund it before opening any channels. When you open a channel, some of your coins will be moved to a multi-signature address controlled by you and your channel partner. This involves a Bitcoin transaction.

Secondly must recipient also be on lightning network channel before the transaction can take place.?

If the other person has a Lightning node/wallet then you should be able to send a payment, but:

1) if you have a channel with that person then the transaction will be instantaneous and free of charge,
2) if you have a channel with some other person then the transaction will be routed through other nodes, as long as there is a path between you and the payee. You will very likely pay a fee, which is negligible for low-value transactions.

In both cases, the payment might failed due to lack of liquidity; it's a more complex topic. Let me know if you are keeping up so far.

If the other person does not have any Lightning channels, you can do a submarine swap. There are third-party services that will accept your Lightning transaction and send an on-chain transaction to the provided address.
hero member
Activity: 882
Merit: 581


If I decided to be using lightning network channel, after I have gotten my appropriate wallet for it. How will I now connect my wallet or will the wallet automatically connected main blockchain?

Secondly must recipient also be on lightning network channel before the transaction can take place.?
Jump to: