ILP Protocol SPSP
Description
Implements version 4 of the Simple Payment Setup Protocol.
Example
Simple Usage
Sends a single-chunk PSK payment or a STREAM payment, if the server supports it. Great for micro-payments or micro-donations inside of a script.
try const resp = await SPSP console catch e console
Make a pull payment from a designated pull payment pointer.
try const resp = await SPSP console catch e console
Advanced Usage
Query the endpoint manually to construct a STREAM or PSK2 payment.
const query = await SPSPconsole// {// destination_account: "test.example.bob.LwNAw4ZEjlOwkc8xmaQRaRd37YRl8sixSCBPgEEqo8I",// shared_secret: "RvqL/HJO3GinYIeujez/OEsBtX6+NtxJwabh7KthfOI=",// content_type: "application/spsp4+json"// }
The query may contain additional information.