Giter VIP home page Giter VIP logo

eclair-plugin-keysend's Introduction

KeySend eclair plugin

This is a plugin for eclair that implements the keysend functionality. Keysend refers to sending payment without having a BOLT11 invoice at the recipient side, instead using the new TLV format we can attach the payment preimage inside the innermost layer of the onion as a custom TLV record. The receiver can accept the payment because it has the preimage from the TLV records. Please note that the keysend functionality is non standard and still experimental.

This plugin has been tested with lnd-0.9.0-beta1.

Installation

The plugin can be built locally or downloaded from the release page of this repo, it's a fat jar that must be passed as argument to eclair when it's launched, see the instructions.

Usage

The plugin supprts both sending and receiving keysend payments, in order to send we expose a new http interface with an additional endpoint:

METHOD Parameter (form_data) Action
/keysend POST amountMsat, nodeId, finalCltvExpiry(optional) Send a keysend payment to the recipient

Note that it's currently impossible for eclair plugins to add new HTTP-RPC endpoints, so this plugin listens on a different port than the standard eclair API. You can configure the port by setting the configuration key keysend.api.port but if none is set the plugin will default to the eclair API port + 1. The same authentication credentials of the regular eclair API is necessary to use the plugin APIs.

eclair-plugin-keysend's People

Contributors

araspitzu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.