Add payments without being tied to a single currency or payment provider.
Send payments to other ledgers, even if they are multiple hops away.
Inspired by TCP/IP, Interledger is easy to implement and use.
Interledger allows you to receive money from any ledger, without setting up accounts on lots of different services.
const Koa = require('koa')
const router = require('koa-router')()
const app = new Koa()
const KoaIlp = require('koa-ilp')
const plugin = require('ilp-plugin')()
const ilp = new KoaIlp({ plugin })
router.get('/', ilp.paid({ price: 1000 }), async ctx => {
ctx.body = 'Hello World!'
})
app
.use(router.routes())
.use(router.allowedMethods())
.listen(8080)
Interledger takes care of getting your money from ledger A to ledger Z, so you can get back to building awesome things! If you’re interested, learn more about how the magic works.
Interledger makes it easy to send money, no matter what ledger you or the recipient are on.
const plugin = require('ilp-plugin')()
const fetch = require('ilp-fetch')
fetch('http://localhost:8080/', {
method: 'GET',
maxPrice: 5000,
plugin
})
.then(response => {
console.log('paid!')
console.log('got response:', response.text)
})
$ npm install -g ilp-curl moneyd
$ moneyd configure --testnet
$ moneyd start --testnet
$ ilp-curl -X GET http://localhost:8080/
Hello World!