<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-text-plain" wrap="true" style="font-family:
      -moz-fixed; font-size: 12px;" lang="x-unicode">
      <pre wrap="">About this:
</pre>
      <blockquote type="cite" style="color: #000000;">
        <pre wrap=""> - We should probably do another pass over the JSON-RPC and see that
   it's future proof
</pre>
      </blockquote>
      <pre wrap="">I am developing a GUI[1] on top of C-Lightning, and I have some comments
on the RPC. These are some of my comments:
* I'd like to have some kind of notification mechanism, maybe ZMQ-based.
* I'd like to have msatoshi resolution, at least for <b class="moz-txt-star"><span class="moz-txt-tag">*</span>all<span class="moz-txt-tag">*</span></b> values that
actually have msatoshi resolution, maybe even for all values (for API
consistency).
* More generally, I'd like to be able to have a complete view of the
state of a node. This includes, for instance, every part of a node's
financial situation, including the on-chain fees of commit transactions,
and the active htlcs.

One thing I'd like to do is show a balance number to the user that
should never automatically decrease. In order to keep the user happy
routing other peoples' transactions, this number should include
outgoing(*) htlcs. Of course I'm fine calculating this balance
client-side, but I need the input data of the calculation. Another thing
I'd like to do is to visualize what's going on in the channels.

Maybe not all of this will make it into 0.6, but if you want to make the
current RPC future proof, you might want to include this in your idea of
what a future RPC version should look like.

CJP

(*) Why outgoing, and not incoming: if a relayed transaction is
canceled, its fees are canceled too. It's best to only conclude you have
received fees at the moment the pre-image arrives; otherwise your sum of
your own funds could actually decrease as a relayed transaction is
canceled. This all assumes a positive fee rate though.

[1] <a class="moz-txt-link-freetext" href="https://github.com/bitonic-cjp/fireworks">https://github.com/bitonic-cjp/fireworks</a>


</pre>
    </div>
  </body>
</html>