-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Is your feature request related to a problem? Please describe.
{ "payment_hash": "f7bb7ab127768172b2d9e48061f1b18d8443b45axxxxxxxxx", "value": "1100", "creation_date": "1759795527", "fee": "2004", "payment_preimage": "38f7067e3c91dc655399fc446b5aa2dc5a0b17xxxxxxxxxxxxxxxxxxxxxx", "value_sat": "1100", "value_msat": "1100000", "payment_request": "lnbc11u1p5wgkfcpp577ah4vf8w6qh9vkeujqxrud33kzy8dz6v0rcs9qfqxz2e7u4eersdqqcqzzsxqrrssrzjqgde3j3stun4p3yyzgdaj2syk4cmmzhu0dyayhhsuyv6a70g9qtalapyqqqqqqqqqcqpapyqqqqqqqqqjqsp5ze7lt5la9pssd7m7kp0vqpqx42erjfd26hqnwu45rry772d3040s9qxpqysgqun2df8r0xeey6jxaa7tqemkrgkx4yfdtqrmwux3p7eytlzhw6g7sgw54pjxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "status": "SUCCEEDED", "fee_sat": "2004", "fee_msat": "2004561", "creation_time_ns": "1759795527253614150", "htlcs": [ { "attempt_id": "35371", "status": "SUCCEEDED", "route": { "total_time_lock": 918424, "total_fees": "2004", "total_amt": "3104", "hops": [ { "chan_id": "962697196944097280", "chan_capacity": "100000", "amt_to_forward": "3103", "fee": "1", "expiry": 918344, "amt_to_forward_msat": "3103558", "fee_msat": "1003", "pub_key": "036280ce2a8346991c39fd616d2c869301xxxxxxxxxxxxxxxx", "tlv_payload": true, "mpp_record": null, "amp_record": null, "custom_records": {}, "metadata": "", "blinding_point": "", "encrypted_data": "", "total_amt_msat": "0" }, { "chan_id": "962547663401385985", "chan_capacity": "20000000", "amt_to_forward": "3101", "fee": "2", "expiry": 918266, "amt_to_forward_msat": "3101310", "fee_msat": "2248", "pub_key": "xxxxxxxxxxxxxxxx7xxxxxx5044e7c787ebd11af1a", "tlv_payload": true, "mpp_record": null, "amp_record": null, "custom_records": {}, "metadata": "", "blinding_point": "", "encrypted_data": "", "total_amt_msat": "0" }, { "chan_id": "1005894809852903435", "chan_capacity": "10000000", "amt_to_forward": "3100", "fee": "1", "expiry": 918186, "amt_to_forward_msat": "3100000", "fee_msat": "1310", "pub_key": "03xxxxxxxxxxxxxxxxx77872axxxxxxxxxxxx", "tlv_payload": true, "mpp_record": null, "amp_record": null, "custom_records": {}, "metadata": "", "blinding_point": "", "encrypted_data": "", "total_amt_msat": "0" }, { "chan_id": "1009256016880074752", "chan_capacity": "200000", "amt_to_forward": "1100", "fee": "2000", "expiry": 918042, "amt_to_forward_msat": "1100000", "fee_msat": "2000000", "pub_key": "021bxxxxxxxxxx8afc7b49d25ef0e119aexxxxxxxxxxxxxx", "tlv_payload": true, "mpp_record": null, "amp_record": null, "custom_records": {}, "metadata": "", "blinding_point": "", "encrypted_data": "", "total_amt_msat": "0" }, { "chan_id": "17592186044416000006", "chan_capacity": "1100", "amt_to_forward": "1100", "fee": "0", "expiry": 918042, "amt_to_forward_msat": "1100000", "fee_msat": "0", "pub_key": "0Xxxxxxxxxxxxxxxxxxxxxxxxxf8xxfc7b45c0d791", "tlv_payload": true, "mpp_record": { "payment_addr": "167df5d3fd286106fb7xxxxxxxx", "total_amt_msat": "1100000" }, "amp_record": null, "custom_records": {}, "metadata": "", "blinding_point": "", "encrypted_data": "", "total_amt_msat": "0" } ], "total_fees_msat": "2004561", "total_amt_msat": "3104561", "first_hop_amount_msat": "354000", "custom_channel_data": { "balances": [ { "asset_id": "xxxxxxxxx", "amount": 3873126 } ], "rfq_id": "f657a84fc5ab1baec5e40dc1fb550b4773715a22xxxx" } }, "attempt_time_ns": "1759795527312575482", "resolve_time_ns": "1759795705874910383", "failure": null, "preimage": "38f7067e3c91dc655399fc446b5aa2dc5axxxxxxxxxx" } ], "payment_index": "32798", "failure_reason": "FAILURE_REASON_TIMEOUT", "first_hop_custom_records": { "65538": "f657a84fc5ab1baecxxxxxxxxx", "106823": "00" } }
In above response the key custom_channel_data.balances.amount tells about how many assets units were send from node, but how much was it used as routing fees and how much was it used to pay sats invoice, a clear bifurcation is needed.
Also adding of rfq object in this and indicating the actual rate will be more useful if possible.
Describe the solution you'd like
Describe alternatives you've considered
One alternative is that with rfq id we can see the rate and key of total_fees_msat we can calculate the asset units and subtract it from total send to get the fees.
Additional context
https://lightningcommunity.slack.com/archives/C03B3556HQ8/p1759801248259519
Pasting slack link of communication for more details