Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RyanMilb/service-lightning
This service will take lightning invoices and pay them using opennode.co api
https://github.com/RyanMilb/service-lightning
Last synced: 2 months ago
JSON representation
This service will take lightning invoices and pay them using opennode.co api
- Host: GitHub
- URL: https://github.com/RyanMilb/service-lightning
- Owner: RyanMilb
- License: mit
- Created: 2019-02-17T05:57:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T10:52:27.000Z (about 4 years ago)
- Last Synced: 2024-01-28T13:12:36.477Z (5 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome - Lightning Network - Easily pay lightning network invoices using the opennode.co api. Warning: Custodial Solution! (Payment)
README
# LightningService
This service will take lightning invoices and pay them using opennode.co api.
You will need your own API key from https://dev.opennode.co/# Contents
- [Installation](#Installation)
- [Definitions](#Definitions)
- [Events](#Events)
- [invoicePaid](#invoicepaid)
- [Tasks](#Tasks)
- [payInvoice](#payinvoice)# Installation
## MESG Core
This service requires [MESG Core](https://github.com/mesg-foundation/core) to be installed first.
You can install MESG Core by running the following command or [follow the installation guide](https://docs.mesg.com/guide/start-here/installation.html).
```bash
bash <(curl -fsSL https://mesg.com/install)
```## Service
Download the source code of this service, and then in the service's folder, run the following command:
```bash
mesg-core service deploy
```# Definitions
# Events
## invoicePaid
Event key: `invoicePaid`
| **Name** | **Key** | **Type** | **Description** |
| --- | --- | --- | --- |
| **success** | `success` | `Boolean` | |# Tasks
## payInvoice
Task key: `payInvoice`
### Inputs
| **Name** | **Key** | **Type** | **Description** |
| --- | --- | --- | --- |
| **apikey** | `apikey` | `String` | |
| **invoice** | `invoice` | `String` | |
| **invoiceId** | `invoiceId` | `String` | |### Outputs
#### error
Output key: `error`
| **Name** | **Key** | **Type** | **Description** |
| --- | --- | --- | --- |
| **error** | `error` | `String` | |#### success
Output key: `success`
| **Name** | **Key** | **Type** | **Description** |
| --- | --- | --- | --- |
| **message** | `message` | `String` | |