diff --git a/doc/API.v0.md b/doc/API.v0.md index f7a0f76..95f53b2 100644 --- a/doc/API.v0.md +++ b/doc/API.v0.md @@ -1181,37 +1181,33 @@ GET http://cyphernode:8888/ln_listfunds ``` Proxy response: ```json -{ - outputs: [ - { - txid: 'd3a536efaa706716458528adf576a5831230031119944e80bc8f349a3c326b79', - output: 0, - value: 9551, - amount_msat: '9551000msat', - address: 'tb1qq0q9ass8cufr3y8cs9zqjslpt55tparj9kqze0', - status: 'confirmed', - blockheight: 1715749 - }, - { - ... - } - ], - channels: [ +{ + outputs: [ { + txid: 'd3a536efaa70671xxxxxxxxx8f349a3c326b79', + output: 0, + value: 9551, + amount_msat: '9551000msat', + address: 'tb1qq0q9ass8cufr3y8cs9zqjslpt55tparj9kqze0', + status: 'confirmed', + blockheight: 1715749 + }, + {...} + ], + channels: [ + { peer_id: '03f60f7369dd4dcff6a13d401b159e0bfc6aca34f05a93a8a897b75c7940a55bb9', - connected: true, - state: 'CHANNELD_NORMAL', - short_channel_id: '1667122x240x0', - channel_sat: 100000, - our_amount_msat: '100000000msat', - channel_total_sat: 100000, - amount_msat: '100000000msat', + connected: true, + state: 'CHANNELD_NORMAL', + short_channel_id: '1667122x240x0', + channel_sat: 100000, + our_amount_msat: '100000000msat', + channel_total_sat: 100000, + amount_msat: '100000000msat', funding_txid: '53cf8cd87fc0250954887afe84758b9ffd512f0c623083100c41c2e2b17887b3', - funding_output: 0 - }, - { - ... - } + funding_output: 0 + }, + {...} ] ``` ### Get the list of payments made by our node @@ -1227,17 +1223,14 @@ Proxy response: ```json { 'pays': -[ - { - bolt11: 'lntb10n1p0xjw9q.... -tlt0dfszcrlkv26swnt85pkwumkfmgaal8sa2awj2adajuzy82e0v6x8cqpzr2t8a', - status: 'complete', preimage: '1127e1fdb....54cc180e3d7', - amount_sent_msat: '1000msat' - }, - { -...} - -] + [ + { + bolt11: 'lntb10n1p0xjw9q....tlt0dfszcrlkv26swnt85pkwumkfmgaal8sa2awj2adajuzy82e0v6x8cqpzr2t8a', + status: 'complete', + preimage: '1127e1fdb....54cc180e3d7', + amount_sent_msat: '1000msat' + }, {...} + ] } ``` @@ -1253,7 +1246,8 @@ GET http://cyphernode:8888/ln_getroute/0308dbd05278e5802dd36436a41b226824283526e Proxy response: ```json -{ route : [ +{ +route : [ { id: '03d5e17a3c213fe490e1b0c389f8cfcfcea08a29717d50a9f453735e0ab2a7c003', channel: '1669002x86x0', @@ -1298,7 +1292,7 @@ BODY {"destination":"bc1.....xxx","satoshi":"100000","feerate":"normal",all: fal Proxy response: ```json { - tx: '0200000....7b0f4da35a2e5640e8c625138558093e76b427ba44bc92657238c63012103832d29fb65ebb2a8b48250797a5abf0e0199411e302098b4f3635e68d4e4fee800000000', + tx:'0200000.......f3635e68d4e4fee800000000', txid: '6b38....b0c3b' } ```