Manage Interledger Accounts Programmatically

Before starting this tutorial, make sure you have created accounts in both the Rafiki and Xpring wallets by following the instructions in the Setup Wallets tutorial.

To get started using Interledger, this tutorial helps you access the Interledger testnet programmatically. This Interledger testnet is currently maintained by teams at Xpring and Coil , but anyone can join. Note that all Interledger test networks use fake money, rather than transferring real value.

The Xpring and Rafiki testnet connectors, both used in this tutorial, together form a network for users to practice sending and receiving test currency values. Although this tutorial uses test XRP for simplicity, Interledger can handle transactions involving any currency pairs, as described in Interledger Overview.

2. Pay a Friend

You can use your account to send test funds to a different payment pointer. This example uses a destination payment pointer on https://rafiki.money . Substitute your accountId from Step 1. You can change the destination payment pointer if you prefer.

amountDelivered: The amount received by your friend, specified in the asset and units used by your friend.

amountSent The amount you sent to your friend, specified in the asset and units of your account.

3. Get Paid

Set up a Xpring testnet account and a rafiki.money account so you have two destination pointers to work with. Experiment with sending and receiving payments in both directions. Check your balance to make sure that the money has arrived in your account.