3

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)?

2
  • 1
    I'm not sure "duration of a transaction" is a well-defined concept. Transactions are essentially instantaneous. Commented Mar 13, 2013 at 2:19
  • 1
    @DavidSchwartz I see... perhaps outstanding debt is better Commented Mar 13, 2013 at 2:28

1 Answer 1

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.

2
  • 1
    This 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'.
    Commented Mar 13, 2013 at 10:20
  • 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. Commented Mar 13, 2013 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.