Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Client } from 'spp-client'
- const client = new Client({
- username: 'alice@red.ilpdemo.org',
- password: 'secret'
- })
- function pay () {
- const payment = client.payment({
- destination: 'bob@blue.ilpdemo.org',
- amount: '0.01',
- memo: 'Still love you!'
- })
- return payment.send()
- }
- setInterval(pay, 1500)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement