BitcoinVoucherBot-X asked almost 2 years ago

about API connections

I would like to know if you have APIs to connect remotely to the service from other resources?
thanks

5 Comments

LN+

LN+ Admin wrote almost 2 years ago

Yes, we have a basic one, but I will release a more comprehensive one soon. I recommend you wait another week or so.
https://lightningnetwork.plus/api_documentation


Shire_Society_Federation wrote almost 2 years ago

Why not include the Channel ID, channel details, and/ or a link to more info on such for after the swap is started?


BitcoinVoucherBot-X

BitcoinVoucherBot-X wrote almost 2 years ago

my question was general about your APIs to connect externally. not a specific question


Shire_Society_Federation wrote almost 2 years ago

API Documentation

This document describes the operation of the LightningNetwork.Plus JSON API. The current version of the API only supports basic swap listing functionality. It's open to the public and doesn't require authentication.

List of Latest Swaps

The list of latest swaps and swap details contains the same swap and participant details.

You can get a list of the latest public swaps with the following link:
https://lightningnetwork.plus/api/swaps.json/pending/10

In the above URL the first parameter (ex. "pending") is the type of swap (aka swap status) being listed. There are 4 possible options, and one must be supplied:
  • all - swap of any status
  • pending - swaps that are open for application for participants
  • opening - swaps that have sufficient number of participants and is in the process of opening channels
  • completed - swaps that are completed with all channels opened

The second parameter (ex. "10") is the number of swaps you are requesting. The minimum number is 1, and the maximum number is 50.

Swap Details

You can get details of a particular swap with the following link:
https://lightningnetwork.plus/api/swap.json/3898

In the above URL the parameter (ex. "3898") is the ID of the swap being requested. This is a unique number and will return an error if the ID is a private swap.


aybabtu

aybabtu wrote over 1 year ago

https://lightningnetwork.plus/api_documentation

Please login to post comments.