spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.38k stars 3.07k forks source link

Accidentally lost funds on channel opening: Seeking Assistance #8915

Closed sanrinconr closed 7 months ago

sanrinconr commented 7 months ago

First of all, this not is a software issue, is a issue for seek contact info, feel free to close the issue if you consider it.

I initiated a channel opening with Electrum Trampoline using LND through the following command:

lncli openchannel --sat_per_vbyte 16 --private --min_confs=0 03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1 1700000 1500000

The issue arose with the parameter 1500000, which represents the "push_amt." According to the documentation, this parameter signifies:

Note that the push-amt is deducted from the specified local-amt, which implies that the local-amt must be greater than the push-amt. Also note that specifying push-amt means you give that amount to the remote node as part of the channel opening.

I see that question https://bitcoin.stackexchange.com/questions/91847/lost-funds-on-my-lightning-node?noredirect=1&lq=1

Soo, in other words, this implies that I unintentionally provided 1500000 bitcoins (sats) to the counterparty without receiving anything in return.

The potential solution involves reaching out to the counterparty. However, I'm unable to locate any contact information for the owner of the Electrum Trampoline. The only information available is the IP address: 195.201.207.61:9740.

That is the node: https://1ml.com/node/03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1

And that the opening transaction (channel is still open): https://blockchair.com/bitcoin/transaction/d337836cd20babab905fc6a02cede41cbdc3e81cdd4e514b333f0adb574c59cf

Does anyone know contact details for the owner of the Electrum Trampoline? Thanks!

SkanderHelali commented 7 months ago

cc @ecdsa

ecdsa commented 7 months ago

I am running that node. I can send you the funds back without an invoice if your node supports keysend.

However, I would need to see a proof that you actually pushed sats during channel opening. Do you know how to display this using Eclair's command line? I have been trying to extract that info using eclair audit and eclair channels, but it does not seem to display that

sanrinconr commented 7 months ago

Oh man, thanks!

About keysend no problem, already active!

About proof i dont know how to do in eclair (im running a lnd node) but my idea is follow the transactions that i done over your node (i suppose in eclair you can see the relayed payments) and match the actual balance of channel (info that you and me can see without trust) . if i'm hidding some payment, i'm cheating you, otherwise we are ok.

So, all start with the opening transaction (d337836cd20babab905fc6a02cede41cbdc3e81cdd4e514b333f0adb574c59cf) on chain, LND give me this output

{
    "channels": [
        {
            "active": true,
            "remote_pubkey": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
            "channel_point": "d337836cd20babab905fc6a02cede41cbdc3e81cdd4e514b333f0adb574c59cf:1",
            "chan_id": "914235122478481409",
            "capacity": "1700000",
            "local_balance": "193093",
            "remote_balance": "1503637",
            "commit_fee": "3270",
            "commit_weight": "724",
            "fee_per_kw": "4516",
            "unsettled_balance": "0",
            "total_satoshis_sent": "100144",
            "total_satoshis_received": "96507",
            "num_updates": "32",
            "pending_htlcs": [
            ],
            "csv_delay": 720,
            "private": true,
            "initiator": true,
            "chan_status_flags": "ChanStatusDefault",
            "local_chan_reserve_sat": "17000",
            "remote_chan_reserve_sat": "17000",
            "static_remote_key": true,
            "commitment_type": "STATIC_REMOTE_KEY",
            "lifetime": "29863",
            "uptime": "29861",
            "close_address": "",
            "push_amount_sat": "1500000",
            "thaw_height": 0,
            "local_constraints": {
                "csv_delay": 720,
                "chan_reserve_sat": "17000",
                "dust_limit_sat": "354",
                "max_pending_amt_msat": "765000000",
                "min_htlc_msat": "1",
                "max_accepted_htlcs": 30
            },
            "remote_constraints": {
                "csv_delay": 204,
                "chan_reserve_sat": "17000",
                "dust_limit_sat": "546",
                "max_pending_amt_msat": "1683000000",
                "min_htlc_msat": "1",
                "max_accepted_htlcs": 483
            },
            "alias_scids": [
            ],
            "zero_conf": false,
            "zero_conf_confirmed_scid": "0",
            "peer_alias": "Electrum Trampoline",
            "peer_scid_alias": "0"
        }
    ]
}

Asumming im telling the truth, the channel start with 200000 sats (1700000 - 1500000) on my side and 1500000 on your side

After that i send 11000 (14 fees) sats with this raw payment

{
            "payment_hash": "25afd23c8de40daa24cdc2db44897d4e0c94062c6224ffde930e72125c463801",
            "value": "11000",
            "creation_date": "1708602243",
            "fee": "14",
            "payment_preimage": "d576b4c906f33a32f6a94887fd2e83a278a89f6b526da40937052fd30f3d20f2",
            "value_sat": "11000",
            "value_msat": "11000000",
            "payment_request": "lnbc110u1pjawv64pp5ykhay0ydusx65fxdctd5fztafcxfgp3vvgj0lh5npeepyhzx8qqsdqqcqzysxqrrsssp5ept6f288zkr5nu3kzn9seesyu50kjesjvxkhag7dhlhc5m2j308q9qyyssqk4kw6c0ppl2gklfxytmlqlzkehwky7zzymnwefef8wyc3vd4lm23mfn83209lwxydk9f73tt5q8zycgyq3vgx0gc9av8tkjm9c0mt7gqeeznxc",
            "status": "SUCCEEDED",
            "fee_sat": "14",
            "fee_msat": "14090",
            "creation_time_ns": "1708602243495993537",
            "htlcs": [
                {
                    "attempt_id": "4001",
                    "status": "SUCCEEDED",
                    "route": {
                        "total_time_lock": 831966,
                        "total_fees": "14",
                        "total_amt": "11014",
                        "hops": [
                            {
                                "chan_id": "914235122478481409",
                                "chan_capacity": "1700000",
                                "amt_to_forward": "11011",
                                "fee": "2",
                                "expiry": 831822,
                                "amt_to_forward_msat": "11011989",
                                "fee_msat": "2101",
                                "pub_key": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                                "tlv_payload": true,
                                "mpp_record": null,
                                "amp_record": null,
                                "custom_records": {
                                },
                                "metadata": null
                            },
                            {
                                "chan_id": "914180146840076288",
                                "chan_capacity": "100000000",
                                "amt_to_forward": "11000",
                                "fee": "11",
                                "expiry": 831678,
                                "amt_to_forward_msat": "11000000",
                                "fee_msat": "11989",
                                "pub_key": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
                                "tlv_payload": true,
                                "mpp_record": null,
                                "amp_record": null,
                                "custom_records": {
                                },
                                "metadata": null
                            },
                            {
                                "chan_id": "913098227473055745",
                                "chan_capacity": "500000000",
                                "amt_to_forward": "11000",
                                "fee": "0",
                                "expiry": 831678,
                                "amt_to_forward_msat": "11000000",
                                "fee_msat": "0",
                                "pub_key": "03a1f3afd646d77bdaf545cceaf079bab6057eae52c6319b63b5803d0989d6a72f",
                                "tlv_payload": true,
                                "mpp_record": {
                                    "payment_addr": "c857a4a8e7158749f23614cb0ce604e51f69661261ad7ea3cdbfef8a6d528bce",
                                    "total_amt_msat": "11000000"
                                },
                                "amp_record": null,
                                "custom_records": {
                                },
                                "metadata": null
                            }
                        ],
                        "total_fees_msat": "14090",
                        "total_amt_msat": "11014090"
                    },
                    "attempt_time_ns": "1708602245204388574",
                    "resolve_time_ns": "1708602246373162220",
                    "failure": null,
                    "preimage": "d576b4c906f33a32f6a94887fd2e83a278a89f6b526da40937052fd30f3d20f2"
                }
            ],
            "payment_index": "5001",
            "failure_reason": "FAILURE_REASON_NONE"
        },

Actual balance 188986 (200000-11014), inbound liquidity of 1511014 (1500000+11014)

After that i send 150 (2 fee) sats with that raw payment

{
    "payment_hash": "6fd1bd65f30aa81f0389f25dcedd40583226d3808473150df7a2e82a747ce751",
    "value": "150",
    "creation_date": "1708606008",
    "fee": "2",
    "payment_preimage": "02cbc903deac129459eeff41fde77e4097dd0a9e34de4cb254baa44279a619c2",
    "value_sat": "150",
    "value_msat": "150000",
    "payment_request": "lnbc1500n1pjawsv6pp5dlgm6e0np25p7quf7fwuah2qtqezd5uqs3e32r0h5t5z5aruuagsdqqcqzzsxqyz5vqsp5zlucuxkatnjdvmu8jddjw3edwmytfy5cw8r9clzgyluqj5sar7hq9qyyssqkkneq8ntfu3msa30acjmdspan298lfu3du5mzay948zj0m0tadrjj0yl2hpfgpccj3ku0vajpzutjpt7cs7mkfs0mlaz0qytgm33hqspl8tlug",
    "status": "SUCCEEDED",
    "fee_sat": "2",
    "fee_msat": "2119",
    "creation_time_ns": "1708606008837649149",
    "htlcs": [
        {
            "attempt_id": "4002",
            "status": "SUCCEEDED",
            "route": {
                "total_time_lock": 831905,
                "total_fees": "2",
                "total_amt": "152",
                "hops": [
                    {
                        "chan_id": "914235122478481409",
                        "chan_capacity": "1700000",
                        "amt_to_forward": "151",
                        "fee": "1",
                        "expiry": 831761,
                        "amt_to_forward_msat": "151104",
                        "fee_msat": "1015",
                        "pub_key": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                        "tlv_payload": true,
                        "mpp_record": null,
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    },
                    {
                        "chan_id": "914180146840076288",
                        "chan_capacity": "100000000",
                        "amt_to_forward": "150",
                        "fee": "1",
                        "expiry": 831617,
                        "amt_to_forward_msat": "150000",
                        "fee_msat": "1104",
                        "pub_key": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
                        "tlv_payload": true,
                        "mpp_record": null,
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    },
                    {
                        "chan_id": "913134511275573249",
                        "chan_capacity": "300000000",
                        "amt_to_forward": "150",
                        "fee": "0",
                        "expiry": 831617,
                        "amt_to_forward_msat": "150000",
                        "fee_msat": "0",
                        "pub_key": "035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226",
                        "tlv_payload": true,
                        "mpp_record": {
                            "payment_addr": "17f98e1add5ce4d66f87935b27472d76c8b4929871c65c7c4827f809521d1fae",
                            "total_amt_msat": "150000"
                        },
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    }
                ],
                "total_fees_msat": "2119",
                "total_amt_msat": "152119"
            },
            "attempt_time_ns": "1708606008934542344",
            "resolve_time_ns": "1708606009889308984",
            "failure": null,
            "preimage": "02cbc903deac129459eeff41fde77e4097dd0a9e34de4cb254baa44279a619c2"
        }
    ],
    "payment_index": "5002",
    "failure_reason": "FAILURE_REASON_NONE"
},

Actual balance 188834 (188986-152), inbound liquidity of 1510862 (1511014+152)

After that i receive 10900 sat with the raw tx:

{
    "memo": "",
    "r_preimage": "5db9ecb14624471f0af008fecec2e594449c184836f61acb8b6216702a67fdfb",
    "r_hash": "17b647e9b98ac71466be00b10f9e3f77500091ef8fcfc51402e00e857561ffc5",
    "value": "10900",
    "value_msat": "10900000",
    "settled": true,
    "creation_date": "1708632484",
    "settle_date": "1708632563",
    "payment_request": "lnbc109u1pja02dypp5z7my06de3tr3ge47qzcsl83lwagqpy003l8u29qzuq8g2atpllzsdqqcqzzsxqyz5vqrzjq0kw7e6mu3ytv90xzajzgpcxw0hc9p8ql5va30sx9fkttvfs5zsdzr9sqsqqfpqqqyqqqqlgqqqqqeqqjqsp5kv7lk9hkxr5s6uszcw7l9xzg4n0sl8mpyltzwhps6f4en9wfm3ss9qyyssqhn6h0fu377xk87nkvawt3c2t8zhlchm0ld3kagsarusvrs6zmkcr58zkya35c7d2zxf88flzq0w637n040j20aghjffc64scy35pvhcqw7qpey",
    "description_hash": null,
    "expiry": "86400",
    "fallback_addr": "",
    "cltv_expiry": "80",
    "route_hints": [
        {
            "hop_hints": [
                {
                    "node_id": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                    "chan_id": "914235122478481409",
                    "fee_base_msat": 1000,
                    "fee_proportional_millionths": 100,
                    "cltv_expiry_delta": 144
                }
            ]
        }
    ],
    "private": true,
    "add_index": "32",
    "settle_index": "15",
    "amt_paid": "10900000",
    "amt_paid_sat": "10900",
    "amt_paid_msat": "10900000",
    "state": "SETTLED",
    "htlcs": [
        {
            "chan_id": "914235122478481409",
            "htlc_index": "1",
            "amt_msat": "10900000",
            "accept_height": 831578,
            "accept_time": "1708632563",
            "resolve_time": "1708632563",
            "expiry_height": 831661,
            "state": "SETTLED",
            "custom_records": {
            },
            "mpp_total_amt_msat": "10900000",
            "amp": null
        }
    ],
    "features": {
        "9": {
            "name": "tlv-onion",
            "is_required": false,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        }
    },
    "is_keysend": false,
    "payment_addr": "b33dfb16f630e90d7202c3bdf29848acdf0f9f6127d6275c30d26b9995c9dc61",
    "is_amp": false,
    "amp_invoice_state": {
    }
},

Actual balance 199734 (188834+10900), inbound liquidity of 1499962 (1510862-10900)

After that i send 10900 sats (13 fees) with raw tx:

{
    "payment_hash": "b3725049c7d24ab2f21f42d2fbbb82fd95aa9c51fa4074979522cf332a1b941a",
    "value": "10900",
    "creation_date": "1708632733",
    "fee": "13",
    "payment_preimage": "43cf49120b8709ca20e032540feef13305819d1638c5e09a7551c43553226d58",
    "value_sat": "10900",
    "value_msat": "10900000",
    "payment_request": "lnbc109u1pja0253pp5kde9qjw86f9t9uslgtf0hwuzlk2648z3lfq8f9u4yt8nx2smjsdqdqqcqzysxqrrsssp5jg8lenze6kttyjpmvgce4uf3gxk2c6q0jh3ex543k8nvqkke4u4s9qyyssq2en88w8m9cstg7ep3yepl5e92cupe8gdhfcguj6vhsgqm7e6tvskcp908vwdtl065qk76lyf3zen802z35yt5nz46fvf0najqhpzezcqcaa8hx",
    "status": "SUCCEEDED",
    "fee_sat": "13",
    "fee_msat": "13980",
    "creation_time_ns": "1708632733347337246",
    "htlcs": [
        {
            "attempt_id": "5000",
            "status": "SUCCEEDED",
            "route": {
                "total_time_lock": 832013,
                "total_fees": "13",
                "total_amt": "10913",
                "hops": [
                    {
                        "chan_id": "914235122478481409",
                        "chan_capacity": "1700000",
                        "amt_to_forward": "10911",
                        "fee": "2",
                        "expiry": 831869,
                        "amt_to_forward_msat": "10911889",
                        "fee_msat": "2091",
                        "pub_key": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                        "tlv_payload": true,
                        "mpp_record": null,
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    },
                    {
                        "chan_id": "914180146840076288",
                        "chan_capacity": "100000000",
                        "amt_to_forward": "10900",
                        "fee": "11",
                        "expiry": 831725,
                        "amt_to_forward_msat": "10900000",
                        "fee_msat": "11889",
                        "pub_key": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
                        "tlv_payload": true,
                        "mpp_record": null,
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    },
                    {
                        "chan_id": "914290098091327488",
                        "chan_capacity": "300000000",
                        "amt_to_forward": "10900",
                        "fee": "0",
                        "expiry": 831725,
                        "amt_to_forward_msat": "10900000",
                        "fee_msat": "0",
                        "pub_key": "03a1f3afd646d77bdaf545cceaf079bab6057eae52c6319b63b5803d0989d6a72f",
                        "tlv_payload": true,
                        "mpp_record": {
                            "payment_addr": "920ffccc59d596b2483b62319af13141acac680f95e39352b1b1e6c05ad9af2b",
                            "total_amt_msat": "10900000"
                        },
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    }
                ],
                "total_fees_msat": "13980",
                "total_amt_msat": "10913980"
            },
            "attempt_time_ns": "1708632733713265420",
            "resolve_time_ns": "1708632735271607992",
            "failure": null,
            "preimage": "43cf49120b8709ca20e032540feef13305819d1638c5e09a7551c43553226d58"
        }
    ],
    "payment_index": "6001",
    "failure_reason": "FAILURE_REASON_NONE"
},

Actual balance 188821 (199734-10913), inbound liquidity of 1510875 (1499962+10913)

After that i receive 10786 sats with raw tx:

{
    "memo": "",
    "r_preimage": "bb778ec6fc8127a9a1090a17b5df0c914201f1a7c4529cf5b5b186307fc3c7a5",
    "r_hash": "ab068a195bafa5ed435360835e988397d2fd7d6a5ba3765ef994b670db721c7a",
    "value": "10786",
    "value_msat": "10786000",
    "settled": true,
    "creation_date": "1708632819",
    "settle_date": "1708632873",
    "payment_request": "lnbc107860n1pja02hnpp54vrg5x2m47j76s6nvzp4axyrjlf06lt2tw3hvhhejjm8pkmjr3aqdqqcqzzsxqyz5vqrzjq0kw7e6mu3ytv90xzajzgpcxw0hc9p8ql5va30sx9fkttvfs5zsdzr9sqsqqfpqqqyqqqqlgqqqqqeqqjqsp57m6j29r34m26n43z0lqp4clg0t4f6c6386qczg0xcehk77kkxtjs9qyyssqpredfkhlx6999x3wc9jpfemxth8r9ex2c8mt6njkpq4snd53jnlp629zjs0jn5zylqwa2tmwsvs5evnw8nuz8amg9z8k7fta50qflmgpx0k883",
    "description_hash": null,
    "expiry": "86400",
    "fallback_addr": "",
    "cltv_expiry": "80",
    "route_hints": [
        {
            "hop_hints": [
                {
                    "node_id": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                    "chan_id": "914235122478481409",
                    "fee_base_msat": 1000,
                    "fee_proportional_millionths": 100,
                    "cltv_expiry_delta": 144
                }
            ]
        }
    ],
    "private": true,
    "add_index": "33",
    "settle_index": "16",
    "amt_paid": "10786000",
    "amt_paid_sat": "10786",
    "amt_paid_msat": "10786000",
    "state": "SETTLED",
    "htlcs": [
        {
            "chan_id": "914235122478481409",
            "htlc_index": "3",
            "amt_msat": "10786000",
            "accept_height": 831578,
            "accept_time": "1708632873",
            "resolve_time": "1708632873",
            "expiry_height": 831661,
            "state": "SETTLED",
            "custom_records": {
            },
            "mpp_total_amt_msat": "10786000",
            "amp": null
        }
    ],
    "features": {
        "9": {
            "name": "tlv-onion",
            "is_required": false,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        }
    },
    "is_keysend": false,
    "payment_addr": "f6f5251471aed5a9d6227fc01ae3e87aea9d63513e818121e6c66f6f7ad632e5",
    "is_amp": false,
    "amp_invoice_state": {
    }
},

Actual balance 199607 (188821+10786), inbound liquidity of 1500089 (1510875-10786)

After that i receive 74675 sats with the raw tx:

{
    "memo": "",
    "r_preimage": "b2a9b864c5c1843fcf0b0754a3866d753033e0a9d311af34ea73db9a43685e89",
    "r_hash": "c4bf790a36dfcfa51e32888bb32b71faeaefce5de7944e77a4fe36c872d702e9",
    "value": "74675",
    "value_msat": "74675000",
    "settled": true,
    "creation_date": "1708636294",
    "settle_date": "1708636467",
    "payment_request": "lnbc746750n1pja0wyxpp5cjlhjz3kml86283j3z9mx2m3lt4wlnjau72yuaaylcmvsukhqt5sdqqcqzzsxqyz5vqrzjq0kw7e6mu3ytv90xzajzgpcxw0hc9p8ql5va30sx9fkttvfs5zsdzr9sqsqqfpqqqyqqqqlgqqqqqeqqjqsp5vdyp48cndfa600ev3h52le33szw8humkatgu6wc6rcsdgqpkhmys9qyyssqnqu6ukmarpnht37hra9gc0x568qx6msun4fupwv2vea607auffgzef6sz473zsg2aan049k7ptzumj225jh07pc7k79a6n53ah88hecqmfs9kw",
    "description_hash": null,
    "expiry": "86400",
    "fallback_addr": "",
    "cltv_expiry": "80",
    "route_hints": [
        {
            "hop_hints": [
                {
                    "node_id": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                    "chan_id": "914235122478481409",
                    "fee_base_msat": 1000,
                    "fee_proportional_millionths": 100,
                    "cltv_expiry_delta": 144
                }
            ]
        }
    ],
    "private": true,
    "add_index": "34",
    "settle_index": "17",
    "amt_paid": "74675000",
    "amt_paid_sat": "74675",
    "amt_paid_msat": "74675000",
    "state": "SETTLED",
    "htlcs": [
        {
            "chan_id": "914235122478481409",
            "htlc_index": "5",
            "amt_msat": "74675000",
            "accept_height": 831584,
            "accept_time": "1708636467",
            "resolve_time": "1708636467",
            "expiry_height": 831667,
            "state": "SETTLED",
            "custom_records": {
            },
            "mpp_total_amt_msat": "74675000",
            "amp": null
        }
    ],
    "features": {
        "9": {
            "name": "tlv-onion",
            "is_required": false,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        }
    },
    "is_keysend": false,
    "payment_addr": "63481a9f136a7ba7bf2c8de8afe631809c7bf376ead1cd3b1a1e20d40036bec9",
    "is_amp": false,
    "amp_invoice_state": {
    }
},

Actual balance 274222 (199607+74615), inbound liquidity of 1425474 (1500089-74615)

After that i receive 146 sats with raw tx

{
    "memo": "",
    "r_preimage": "f55a373fed9901be76a897f11cf85a048c215a67658f32a1012350fa7b055a09",
    "r_hash": "2677c89d83af7290eef0f28aad3bc81a99358a6262dca0353543122f5a55f8e4",
    "value": "146",
    "value_msat": "146000",
    "settled": true,
    "creation_date": "1708884051",
    "settle_date": "1708884069",
    "payment_request": "lnbc1460n1pjahqznpp5yemu38vr4aefpmhs72926w7gr2vntznzvtw2qdf4gvfz7kj4lrjqdqqcqzzsxqyz5vqrzjq0kw7e6mu3ytv90xzajzgpcxw0hc9p8ql5va30sx9fkttvfs5zsdzr9sqsqqfpqqqyqqqqlgqqqqqeqqjqsp54pm0aq0au82cjwkhtem200xff4c4y3xv7kk3w7hau2dzcjyul0kq9qyyssq8tm7fjks23u2ltnjl4qseuxglyr2nk9ce9n56nc5fctncnfkvrxr7pzjufsh2rt29x2f3gxhvtxevgjvze5gxrluwxlhychtr5725tgplt3aqg",
    "description_hash": null,
    "expiry": "86400",
    "fallback_addr": "",
    "cltv_expiry": "80",
    "route_hints": [
        {
            "hop_hints": [
                {
                    "node_id": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                    "chan_id": "914235122478481409",
                    "fee_base_msat": 1000,
                    "fee_proportional_millionths": 100,
                    "cltv_expiry_delta": 144
                }
            ]
        }
    ],
    "private": true,
    "add_index": "36",
    "settle_index": "18",
    "amt_paid": "146000",
    "amt_paid_sat": "146",
    "amt_paid_msat": "146000",
    "state": "SETTLED",
    "htlcs": [
        {
            "chan_id": "914235122478481409",
            "htlc_index": "6",
            "amt_msat": "146000",
            "accept_height": 832012,
            "accept_time": "1708884069",
            "resolve_time": "1708884069",
            "expiry_height": 832095,
            "state": "SETTLED",
            "custom_records": {
            },
            "mpp_total_amt_msat": "146000",
            "amp": null
        }
    ],
    "features": {
        "9": {
            "name": "tlv-onion",
            "is_required": false,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        }
    },
    "is_keysend": false,
    "payment_addr": "a876fe81fde1d5893ad75e76a7bcc94d715244ccf5ad177afde29a2c489cfbec",
    "is_amp": false,
    "amp_invoice_state": {
    }
}

Actual balance 274368 (274222+146), inbound liquidity of 1425328 (1425474-146)

After that a send 78000 sats (64 fee), with raw tx (is the last)

{
    "payment_hash": "9deb81b5c5a86286ff3e64f0bc2ff812fe430409ab0fa16ed169f9452c2d715f",
    "value": "78000",
    "creation_date": "1708889472",
    "fee": "64",
    "payment_preimage": "9cfa8aa17b6c18ab17c247043c835aeb7bcbf108bc710920467f2a5c4c5f5255",
    "value_sat": "78000",
    "value_msat": "78000000",
    "payment_request": "lnbc780u1pjah92tpp5nh4crdw94p3gdle7vnctctlcztlyxpqf4v86zmk3d8u52tpdw90sdqqcqzzsxqyz5vqsp5ypetl5l4yqk5gtkc8ard64g2qysmfgny8zea24usatrc0hxw39ns9qyyssqmzjhkvr04qqm7pdpsrx79uys6ea3ytp64wm473lq2avnnha0zcczx5szf24ef8f7rcaw04sxnunwdn23wfq7wpupmm7tlxtdj0026ugqdfafrn",
    "status": "SUCCEEDED",
    "fee_sat": "64",
    "fee_msat": "64327",
    "creation_time_ns": "1708889472388179379",
    "htlcs": [
        {
            "attempt_id": "6000",
            "status": "SUCCEEDED",
            "route": {
                "total_time_lock": 832390,
                "total_fees": "64",
                "total_amt": "78064",
                "hops": [
                    {
                        "chan_id": "914235122478481409",
                        "chan_capacity": "1700000",
                        "amt_to_forward": "78055",
                        "fee": "8",
                        "expiry": 832246,
                        "amt_to_forward_msat": "78055522",
                        "fee_msat": "8805",
                        "pub_key": "03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1",
                        "tlv_payload": true,
                        "mpp_record": null,
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    },
                    {
                        "chan_id": "914180146840076288",
                        "chan_capacity": "100000000",
                        "amt_to_forward": "78000",
                        "fee": "55",
                        "expiry": 832102,
                        "amt_to_forward_msat": "78000000",
                        "fee_msat": "55522",
                        "pub_key": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
                        "tlv_payload": true,
                        "mpp_record": null,
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    },
                    {
                        "chan_id": "913134511275573249",
                        "chan_capacity": "300000000",
                        "amt_to_forward": "78000",
                        "fee": "0",
                        "expiry": 832102,
                        "amt_to_forward_msat": "78000000",
                        "fee_msat": "0",
                        "pub_key": "035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226",
                        "tlv_payload": true,
                        "mpp_record": {
                            "payment_addr": "2072bfd3f5202d442ed83f46dd550a0121b4a26438b3d55790eac787dcce8967",
                            "total_amt_msat": "78000000"
                        },
                        "amp_record": null,
                        "custom_records": {
                        },
                        "metadata": null
                    }
                ],
                "total_fees_msat": "64327",
                "total_amt_msat": "78064327"
            },
            "attempt_time_ns": "1708889472987463258",
            "resolve_time_ns": "1708889473870717134",
            "failure": null,
            "preimage": "9cfa8aa17b6c18ab17c247043c835aeb7bcbf108bc710920467f2a5c4c5f5255"
        }
    ],
    "payment_index": "7001",
    "failure_reason": "FAILURE_REASON_NONE"
}

Actual balance 196274 (274368-78094), inbound liquidity of 1503422 (1425328+78094)

It differs a little from the final value I see in lnd (i dont know for what) but it is nothing big, real outbount is 192551 sats and real inbound is 1503637

Soo, with that data you can verify the relayed transactions of your node and do the same accounting, if you find another payment hash (with a bigger value like 1 millon) from my node i'm probably cheating you, otherwise what i said about the lossing is real

If you need more info tell me, again, thanks!

sanrinconr commented 7 months ago

Something that i forget to tell you was the node pubkey :stuck_out_tongue: , is: 024a70d0ba6e589f8fa907c4435b9893947c33534396ba2bd10c7be65e8de0fef4

ecdsa commented 7 months ago

indeed, it is a bit cumbersome, but I could verify the amount.

I was not able to send you back 15mBTC because of the channel reserves. (and I cannot rebalance your channel because it is private) So I sent you back 14.5 mBTC using 4 keysend payments (amounts 5, 5, 4 and 0.5)

sanrinconr commented 7 months ago

Received! Thank you very much for your help. I am really grateful to you.

Have a good day and again, thank you very much!

Anything I can help with in the future, write to me.