Bitcoin Forum
December 14, 2019, 10:57:53 AM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there any service up yet that provides Lightning API?  (Read 195 times)
100bitcoin
Sr. Member
****
Offline Offline

Activity: 677
Merit: 343


View Profile
March 13, 2019, 06:18:29 PM
 #1

Like we have https://www.blockchain.com/api or https://block.io/api/ for on chain transactions, do we have something similar for Lightning Network?

To be specific, I am looking for the following functions through Lightning API...

- generating a Lightning address

- getting a callback while receiving a Lightning transaction

- creating & broadcasting a Lightning transaction

1576321073
Hero Member
*
Offline Offline

Posts: 1576321073

View Profile Personal Message (Offline)

Ignore
1576321073
Reply with quote  #2

1576321073
Report to moderator
1576321073
Hero Member
*
Offline Offline

Posts: 1576321073

View Profile Personal Message (Offline)

Ignore
1576321073
Reply with quote  #2

1576321073
Report to moderator
Best ratesfor crypto
EXCHANGE
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1576321073
Hero Member
*
Offline Offline

Posts: 1576321073

View Profile Personal Message (Offline)

Ignore
1576321073
Reply with quote  #2

1576321073
Report to moderator
darosior
Full Member
***
Offline Offline

Activity: 210
Merit: 257



View Profile WWW
March 13, 2019, 06:37:26 PM
 #2

Like we have https://www.blockchain.com/api or https://block.io/api/ for on chain transactions, do we have something similar for Lightning Network?

To be specific, I am looking for the following functions through Lightning API...

- generating a Lightning address

- getting a callback while receiving a Lightning transaction

- creating & broadcasting a Lightning transaction
Hi,

There are no such thing as Lightning address or transactions, on lightning are exchanged bitcoin transactions.

ETFbitcoin
Legendary
*
Offline Offline

Activity: 1848
Merit: 2124

Use SegWit and enjoy lower fees.


View Profile WWW
March 13, 2019, 06:51:25 PM
Merited by darosior (1)
 #3

LND which is client of LN have RPC API, but the downside is you must set a device (VPS, Pi, etc.).
Their documentation/guide page is down at this moment though.

Hi,

There are no such thing as Lightning address or transactions, on lightning are exchanged bitcoin transactions.

I think he meant :
1. Node's IP address which used to to connect to that node
2. Transaction which happen off-chain. But only sender, receiver and nodes used to route transaction who have such information.

BitCryptex
Hero Member
*****
Online Online

Activity: 784
Merit: 1114


Write @BitCryptex or quote my post to notify me


View Profile WWW
March 14, 2019, 09:12:33 PM
 #4

Take a look at OpenNode if you don't want to bother with setting up and maintaining your own Lightning Network node. Here you can find the documentation. You might find it useful.

PrimeNumber7
Sr. Member
****
Offline Offline

Activity: 294
Merit: 376


View Profile
March 18, 2019, 03:57:45 AM
Merited by ETFbitcoin (1), 100bitcoin (1)
 #5

There are no "addresses" on the LN, the closest thing to an address is an "invoice" which is for a specific amount of bitcoin. In theory, someone could create a service in which invoices are automatically generated after being told the details of your open LN channels.

A LN "transaction" is actually a series of Bitcoin multisig transactions that are not intended to be broadcast to the Bitcoin network, and are signed in a very specific order with each party to a transaction signing their portion and only signing the next portion after they have received the other party's signed portion.

You can only "receive" a LN transaction after you have generated an invoice, after it is "paid". The only entity that is in a position to know a LN invoice is paid is the one who has an open LN channel open the invoice was paid through.

If you are not wanting to run both a Bitcoin and a LN full node, in the future there may be third party services that will run one for you, and will create invoices and notify you once the invoices have been paid.

smartmixer.io▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
Make your Cryptos untraceable!
(( ███████ ((    TELEGRAM    )) ███████ ))
▄▄███████▄▄
▄███████▀███████▄
▄███▀▀▀ ▄▄▄ ▀▀▀███▄
▄███ ▄▀▀▀   ▀▀▀▄ ███▄
████ █  ▄   ▄█ █ ████
████▌▐▌ ▀█▄█▀ ▐▌▐████
▀████ ▀▄  ▀  ▄▀ ████▀
▀████▄ ▀▄▄▄▀ ▄████▀
▀█████▄▄ ▄▄█████▀
▀▀███████▀▀
.

NO LOGS
▄▄███████▄▄
▄██████▀▀▀██████▄
▄█████▀ ▄▄▄ ▀█████▄
▄██████ ▀   █ ██████▄
███████   █▀  ███████
████████▄ ▄ ▄████████
▀████▀         ▀████▀
▀███   ▄   ▄   ███▀
▀███████████████▀
▀▀███████▀▀
.

NO SIGN-UP
▄▄███████▄▄
▄███████████████▄
▄███████▀   ▀█████▄
▄████▀  ▀      █████▄
████     ▄▀▄  ▀ ▀████
███    ▄▀▄ ▄▀▄    ███
▀███▄▄  ▀█ █▀   ▄███▀
▀████████ ████████▀
▀███████████████▀
▀▀███████▀▀
.

70% COMSN
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
MIX NOW!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
100bitcoin
Sr. Member
****
Offline Offline

Activity: 677
Merit: 343


View Profile
March 22, 2019, 02:12:42 PM
 #6

There are no "addresses" on the LN, the closest thing to an address is an "invoice" which is for a specific amount of bitcoin. In theory, someone could create a service in which invoices are automatically generated after being told the details of your open LN channels.
So, these are invoice rather than address?

- lnbc50n1pwgvehspp5nf9v6pe2ue7dsgdhxewldggke6sjd25sfgcvgn8pnkjgw7aa5zlqdqqcqzys2 397e93ucr5ynvwanswn9qhe6qluxtx2whwuh57guk8ejyvwv2wkjprjfuhwf5m9gzsmpdtgscp5nfgl laq3h6sprmszkpjmmlzdpxcpe8jlm6

- lnbc50n1pwg8zm4pp5p562th3pfzq52qufqds47x554dr3tgcehnrutfaryaca5q6vfqssdqqcqzysx qyz5vqmw92r5zuwx8uzhzh0yrwssywxlwmnwhx2c8863pw7ka55m2gnjrn48fc53mty5mphkvhmfp4f dx8tta3c4fw26gkpgc48g54pqjttgcpe2eaux

- lnbc50n1pwg9jk3pp5jyrsph7wtatw2w8lvk3uh3tkdnzvgu06qayukgur953pggayvj4qdqqcqzysp vcs472tuym7zs6ed2n27f923dxs4p7gq7jx8sqj223mxzysn7k5rsdntg2d5xlp2408cy57l3c29wmd 3pyr32jhzdqs4x4cuv3zlucp5rnlya

A LN "transaction" is actually a series of Bitcoin multisig transactions that are not intended to be broadcast to the Bitcoin network, and are signed in a very specific order with each party to a transaction signing their portion and only signing the next portion after they have received the other party's signed portion.
Ok.

You can only "receive" a LN transaction after you have generated an invoice, after it is "paid". The only entity that is in a position to know a LN invoice is paid is the one who has an open LN channel open the invoice was paid through.
So, as a 3rd party, I'll never know whether the invoices given above are paid or not?

If you are not wanting to run both a Bitcoin and a LN full node, in the future there may be third party services that will run one for you, and will create invoices and notify you once the invoices have been paid.
Hope so.

PrimeNumber7
Sr. Member
****
Offline Offline

Activity: 294
Merit: 376


View Profile
March 23, 2019, 06:27:45 AM
 #7

There are no "addresses" on the LN, the closest thing to an address is an "invoice" which is for a specific amount of bitcoin. In theory, someone could create a service in which invoices are automatically generated after being told the details of your open LN channels.
So, these are invoice rather than address?

- lnbc50n1pwgvehspp5nf9v6pe2ue7dsgdhxewldggke6sjd25sfgcvgn8pnkjgw7aa5zlqdqqcqzys2 397e93ucr5ynvwanswn9qhe6qluxtx2whwuh57guk8ejyvwv2wkjprjfuhwf5m9gzsmpdtgscp5nfgl laq3h6sprmszkpjmmlzdpxcpe8jlm6
I have not used LN to date, so I cannot say what these strings are. If you received those strings from a LN user asking you to send a payment to that person, they are presumably invoices.

You can only "receive" a LN transaction after you have generated an invoice, after it is "paid". The only entity that is in a position to know a LN invoice is paid is the one who has an open LN channel open the invoice was paid through.
So, as a 3rd party, I'll never know whether the invoices given above are paid or not?
If you are not the sender, nor the receiver of the transaction, you will not know if an invoice is paid.

To my knowledge, the current LN technology does not provide for a way to prove to a third party that an invoice is paid. This may be something the LN devs may provide for in the future, and it would probably be a useful feature. If you are paying a third party service to create invoices for you, and to notify you when they are paid, you would probably need to trust the third party to correctly tell you.....in this case, you would need to trust the third party to send money to you (presumably in batches), so you are already trusting them. 


smartmixer.io▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
Make your Cryptos untraceable!
(( ███████ ((    TELEGRAM    )) ███████ ))
▄▄███████▄▄
▄███████▀███████▄
▄███▀▀▀ ▄▄▄ ▀▀▀███▄
▄███ ▄▀▀▀   ▀▀▀▄ ███▄
████ █  ▄   ▄█ █ ████
████▌▐▌ ▀█▄█▀ ▐▌▐████
▀████ ▀▄  ▀  ▄▀ ████▀
▀████▄ ▀▄▄▄▀ ▄████▀
▀█████▄▄ ▄▄█████▀
▀▀███████▀▀
.

NO LOGS
▄▄███████▄▄
▄██████▀▀▀██████▄
▄█████▀ ▄▄▄ ▀█████▄
▄██████ ▀   █ ██████▄
███████   █▀  ███████
████████▄ ▄ ▄████████
▀████▀         ▀████▀
▀███   ▄   ▄   ███▀
▀███████████████▀
▀▀███████▀▀
.

NO SIGN-UP
▄▄███████▄▄
▄███████████████▄
▄███████▀   ▀█████▄
▄████▀  ▀      █████▄
████     ▄▀▄  ▀ ▀████
███    ▄▀▄ ▄▀▄    ███
▀███▄▄  ▀█ █▀   ▄███▀
▀████████ ████████▀
▀███████████████▀
▀▀███████▀▀
.

70% COMSN
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
MIX NOW!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
▄  ▄  ▄  ▄  ▄

▀  ▀  ▀  ▀  ▀
RHavar
Legendary
*
Offline Offline

Activity: 1862
Merit: 1494



View Profile
March 24, 2019, 02:12:04 AM
 #8

Like we have https://www.blockchain.com/api or https://block.io/api/ for on chain transactions, do we have something similar for Lightning Network?

To be specific, I am looking for the following functions through Lightning API...

- generating a Lightning address

- getting a callback while receiving a Lightning transaction

- creating & broadcasting a Lightning transaction

I think this is actually all possible using BlueWallet's LndHub. You could make API requests to their server, or host your own.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!