Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

ILP SPSP

Command-line tool for sending spsp payments over ILP

Quick-start

Make sure you're running a local ILP provider or configure ILP_BTP_SERVER when sending. Read the getting started guide on interledger.org for information on setting up a test wallet account.

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! 

About

Command line tool for sending SPSP payments

Resources

Packages

No packages published