How can I measure outstanding debt? How much "stored value" is in Ripple at any given moment?

3

2

Is there any way to measure how much stored value is in Ripple at any given moment?

I read that that people who are risk averse won't store cash in Ripple for long periods of time, and will redeem their IOUs right away. Since the nature of transactions is for someone to "pay later" that makes me think there will always be stored value in the system. Based on that:

  • How many IOUs (outstanding debt) has been issued at a given time? (stored value)

  • What is the average duration of a transaction (network wide, per gateway, etc)

How can I query for this data in raw format (or graphically)?

goodguys_activate

Posted 2013-03-06T14:53:43.687

Reputation: 11 898

1I'm not sure "duration of a transaction" is a well-defined concept. Transactions are essentially instantaneous.David Schwartz 2013-03-13T02:19:14.183

1@DavidSchwartz I see... perhaps outstanding debt is bettergoodguys_activate 2013-03-13T02:28:19.270

Answers

3

You can issue the account_lines command to a Ripple server to find out what credit lines have been extended by or to an account.

For example, you can use this websocket test page to issue websocket queries. Set the location to wss://s1.ripple.com:51233, click use secure, and then connect.

Then paste this in the Message window:
{ "command" : "account_lines", "account" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B" }

This pulls the credit lines that Bitstamp has. You'll see entries like this:

     {
        "account" : "rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1",
        "balance" : "-501.64408854616",
        "currency" : "BTC",
        "limit" : "0",
        "limit_peer" : "10000",
        "quality_in" : 0,
        "quality_out" : 0
     },

This means that Bitstamp owes rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1 501.64 BTC (Bitcoins) and that user has extended them a credit limit of 10,000 Bitcoins.

David Schwartz

Posted 2013-03-06T14:53:43.687

Reputation: 46 931

1This answer is focused on a user, but his question was more about gathering general data. Does that imply that he should gather all existing addresses and do such a thing for each one?o0'. 2013-03-13T10:20:27.143

2@Lohoris: You can query each gateway. Measuring credit between normal users could give you lots of meaningless numbers. (I can create two accounts, extend a million dollars in credit from one to the other, and then borrow from that line without any actual money being involved.) You could walk the entire ledger, but it's a bit more complicated.David Schwartz 2013-03-13T13:38:25.533