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
- Host: GitHub
- URL: https://github.com/interledgerjs/ilp-spsp
- Owner: interledgerjs
- Created: 2018-01-25T22:27:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T21:26:38.000Z (12 months ago)
- Last Synced: 2025-03-30T23:31:39.777Z (2 months ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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 bashilp-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 pointerilp-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!
```