An open API service indexing awesome lists of open source software.

https://github.com/interledgerjs/ilp-spsp

Command line tool for sending SPSP payments
https://github.com/interledgerjs/ilp-spsp

Last synced: 30 days ago
JSON representation

Command line tool for sending SPSP payments

Awesome Lists containing this project

README

        

# ILP SPSP
> Command-line tool for sending spsp payments over ILP

## Quick-start

Make sure you're running a [local ILP provider](https://github.com/interledgerjs/moneyd) or configure [`ILP_BTP_SERVER`](https://github.com/interledgerjs/interledgerjs/tree/master/packages/ilp-plugin#ilp-plugin) when `send`ing.
Read the getting started guide on [interledger.org](https://interledger.org/setup-wallets.html) for information on setting up a test wallet account.

```sh
npm install -g ilp-spsp
# payment pointers use the '$' so must be escaped in bash

ilp-spsp --help
# -->
# ilp-spsp [command]

# Commands:
# ilp-spsp send send money via SPSP
# ilp-spsp invoice pay an SPSP invoice
# ilp-spsp pull pull money via SPSP
# ilp-spsp query query SPSP endpoint

# Options:
# --help Show help [boolean]
# --version Show version number [boolean]
# --pointer, --receiver, -p, -r SPSP payment pointer

ilp-spsp query --pointer '$rafiki.money/p/your-username'
# -->
# {
# "destinationAccount": "test.rafikius1.mini.GsY5wdYWgOvykG2KMlBZVQqdH57aYcAwNFVJ86PXLmU.local.DMMyURutr6hUmF-Go0ch3SAnsvrKKnmqG6oWwtEDjTA.cFKMLZPFaXJCL_pqqjLtLWPE~ccf42f59-5692-4a8b-8fde-4896c7601035",
# "sharedSecret": "qtUsvKOjVX9b6WIZT5KVTJhXnkej0P5kH6vAoRm9atU=",

ILP_BTP_SERVER=btp+wss://us1.rafikilabs.com/btp ilp-spsp send --pointer '$rafiki.money/p/your-username' --amount 1000
# -->
# paying 1000 to "$rafiki.money/p/your-username"...
# sent 1000 units!

ilp-spsp pull --pointer '$mysubdomain.localtunnel.me/f8095a44-c77f-4414-a19d-7aeca03f17c7' --amount 100
# -->
# pulled 100 units!
```