Javascript wrapper for plugins that expose the Ledger Plugin Interface v2.
The Plugin Proxy can be run as a stand-alone service. It is configured with two ILP plugins and provides a bridge between them registering the sendData and sendMoney functions on each as the handleMoney and handleData handlers on the other.
The package also provides a basic implementation of the BTP plugin which will:
- handle BTP Transfer messages and pass the amount to the sendMoney of the other plugin.
- handle calls to sendMoney by sending a BTP Transfer message
By using BTP as a standard messaging interface ILP implementations that are not written in JavaScript can use the proxy to get functionality provided by the various JS plugins already written.
npm install ilp-pluginproxy
See https://interledgerjs.github.io/ilp-pluginproxy
//TODO
Try it out by running the example script.