# ilp-plugin-xrp-paychan

> Uses payment channels on ripple to do fast ILP transactions between you and a peer. Current in-flight payments are at risk (your peer can choose not to give you claims for them), but are secured against the ledger as soon as you get a claim.

Latest version **2.4.1** (published 2018-12-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install ilp-plugin-xrp-paychan
pnpm add ilp-plugin-xrp-paychan
yarn add ilp-plugin-xrp-paychan
bun add ilp-plugin-xrp-paychan
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.1 |
| Published | 2018-12-10 |
| First published | 2017-08-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 117.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | ripple |

## Links

- npm: https://www.npmjs.com/package/ilp-plugin-xrp-paychan
- Repository: https://github.com/ripple/ilp-plugin-xrp-paychan
- Homepage: https://github.com/ripple/ilp-plugin-xrp-paychan#readme
- Issues: https://github.com/ripple/ilp-plugin-xrp-paychan/issues
- npm.io page: https://npm.io/package/ilp-plugin-xrp-paychan

## Dependencies (9)

- [debug](https://npm.io/package/debug.md) ^3.1.0
- [tweetnacl](https://npm.io/package/tweetnacl.md) ^1.0.0
- [btp-packet](https://npm.io/package/btp-packet.md) ^2.2.0
- [ilp-logger](https://npm.io/package/ilp-logger.md) ^1.1.3
- [ripple-lib](https://npm.io/package/ripple-lib.md) ^0.22.0
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^7.0.2
- [ilp-plugin-btp](https://npm.io/package/ilp-plugin-btp.md) ^1.3.6
- [ilp-store-memory](https://npm.io/package/ilp-store-memory.md) ^1.0.0
- [ilp-plugin-xrp-paychan-shared](https://npm.io/package/ilp-plugin-xrp-paychan-shared.md) ^4.1.0

## Recent versions

- 2.4.1 (latest) — 2018-12-10
- 2.4.0 — 2018-08-03
- 2.3.4 — 2018-07-10
- 2.3.3 — 2018-07-10
- 2.3.2 — 2018-07-10
- 2.3.1 — 2018-06-26
- 2.3.0 — 2018-04-30
- 2.2.3 — 2018-04-27
- 2.2.2 — 2018-04-26
- 2.2.1 — 2018-04-25
- 2.2.0 — 2018-04-19
- 2.1.2 — 2018-04-03
- 2.1.1 — 2018-03-26
- 2.1.0 — 2018-03-13
- 2.0.1 — 2018-03-08
- … 5 more at https://npm.io/package/ilp-plugin-xrp-paychan/versions

## README

# ilp-plugin-xrp-paychan

Uses payment channels on ripple to do fast ILP transactions between you and a
peer. Current in-flight payments are at risk (your peer can choose not to give
you claims for them), but are secured against the ledger as soon as you get a
claim.

**Warning: This plugin is still in a development state.**

# Example

This is how to instantiate a plugin:

```js
const PluginXrpPaychan = require('ilp-plugin-xrp-paychan')
const Store = require('ilp-plugin-payment-channel-framework/test/helpers/objStore')

const plugin = new PluginXrpPaychan({

  // If you want your peer to connect to you as a ws client (which doesn't
  // change the nature of the liquidity relationship) set the `listener`
  // argument in the constructor.
  listener: {
    port: 666,
    secret: 'its_a_secret' // this is the token that your peer must authenticate with.
  },

  // If you wish to connect to your peer as a ws client, specify the server option.
  // You may specify both the server and client options; in that case it is not deterministic
  // which peer will end up as the ws client.
  server: 'btp+ws://:its_a_secret@localhost:666',

  // Specify the server that you submit XRP transactions to.
  xrpServer: 'wss://s.altnet.rippletest.net:51233',

  // XRP address and secret
  secret: 's...',
  address: 'r...',

  // Peer's XRP address
  peerAddress: 'r...',

  // Store in which to save claims and channel details. This will be passed in
  // automatically if you're using the ILP connector.
  _store: new Store()
})

plugin.connect().then(() => {
  // do something with your plugin
  return plugin.sendData(/* ... */)
})
```

---
_Source: https://npm.io/package/ilp-plugin-xrp-paychan · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
