mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-31 10:14:35 +01:00
json not js
This commit is contained in:
@@ -1180,32 +1180,33 @@ Calls listfunds from lightningd. Returns the list of unused outputs and funds in
|
||||
GET http://cyphernode:8888/ln_listfunds
|
||||
```
|
||||
Proxy response:
|
||||
|
||||
```json
|
||||
{
|
||||
outputs: [
|
||||
{
|
||||
txid: 'd3a536efaa70671xxxxxxxxx8f349a3c326b79',
|
||||
output: 0,
|
||||
value: 9551,
|
||||
amount_msat: '9551000msat',
|
||||
address: 'tb1qq0q9ass8cufr3y8cs9zqjslpt55tparj9kqze0',
|
||||
status: 'confirmed',
|
||||
blockheight: 1715749
|
||||
"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',
|
||||
funding_txid: '53cf8cd87fc0250954887afe84758b9ffd512f0c623083100c41c2e2b17887b3',
|
||||
funding_output: 0
|
||||
"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',
|
||||
"funding_txid": '53cf8cd87fc0250954887afe84758b9ffd512f0c623083100c41c2e2b17887b3',
|
||||
"funding_output": 0
|
||||
},
|
||||
{...}
|
||||
]
|
||||
@@ -1222,13 +1223,13 @@ Proxy response:
|
||||
|
||||
```json
|
||||
{
|
||||
'pays':
|
||||
"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"
|
||||
}, {...}
|
||||
]
|
||||
}
|
||||
@@ -1247,33 +1248,33 @@ Proxy response:
|
||||
|
||||
```json
|
||||
{
|
||||
route : [
|
||||
"route": [
|
||||
{
|
||||
id: '03d5e17a3c213fe490e1b0c389f8cfcfcea08a29717d50a9f453735e0ab2a7c003',
|
||||
channel: '1669002x86x0',
|
||||
direction: 0,
|
||||
msatoshi: 21000,
|
||||
amount_msat: '21000msat',
|
||||
delay: 64,
|
||||
style: 'tlv'
|
||||
"id": "03d5e17a3c213fe490e1b0c389f8cfcfcea08a29717d50a9f453735e0ab2a7c003",
|
||||
"channel": "1669002x86x0",
|
||||
"direction": 0,
|
||||
"msatoshi": 21000,
|
||||
"amount_msat": "21000msat",
|
||||
"delay": 64,
|
||||
"style": "tlv"
|
||||
},
|
||||
{
|
||||
id: '038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9',
|
||||
channel: '1666593x247x1',
|
||||
direction: 1,
|
||||
msatoshi: 21000,
|
||||
amount_msat: '21000msat',
|
||||
delay: 49,
|
||||
style: 'tlv'
|
||||
"id": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
|
||||
"channel": "1666593x247x1",
|
||||
"direction": 1,
|
||||
"msatoshi": 21000,
|
||||
"amount_msat": "21000msat",
|
||||
"delay": 49,
|
||||
"style": "tlv"
|
||||
},
|
||||
{
|
||||
id: '03b4e78b999c4ff29508c5889f51852d9d5f04eae1e829e54010d26b49628b953f',
|
||||
channel: '1607984x3x1',
|
||||
direction: 0,
|
||||
msatoshi: 20000,
|
||||
amount_msat: '20000msat',
|
||||
delay: 9,
|
||||
style: 'tlv'
|
||||
"id": "03b4e78b999c4ff29508c5889f51852d9d5f04eae1e829e54010d26b49628b953f",
|
||||
"channel": "1607984x3x1",
|
||||
"direction": 0,
|
||||
"msatoshi": 20000,
|
||||
"amount_msat": "20000msat",
|
||||
"delay": 9,
|
||||
"style": "tlv"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1292,8 +1293,8 @@ BODY {"destination":"bc1.....xxx","satoshi":"100000","feerate":"normal",all: fal
|
||||
Proxy response:
|
||||
```json
|
||||
{
|
||||
tx:'0200000.......f3635e68d4e4fee800000000',
|
||||
txid: '6b38....b0c3b'
|
||||
"tx":"0200000.......f3635e68d4e4fee800000000",
|
||||
"txid": "6b38....b0c3b"
|
||||
}
|
||||
```
|
||||
### Stamp a hash on the Bitcoin blockchain using OTS (called by application)
|
||||
|
||||
Reference in New Issue
Block a user