invoice amount is 1200000 but I paid 1201035. What is 1035?

by zono   Last Updated June 12, 2019 03:27 AM

I paid the invoice and then I noticed I paid more than the amount of the invoice.

1201035 (I actually paid) - 1200000 (the amount of the invoice) = 1035 (?)

My questions are..

  1. What is 1035 satoshi? (routing fee..?)
  2. Is it possible to know how much extra amount I will pay before paying.
$ lightning-cli pay lntb12u1pw0ljy4pp55mjg93fckm3ydxsdglp4xxtc8vuc0v79g24gm3rz8h72j8fg32tqdp2xys9xct5da3kx6twv9kk7m3qg3hkccm9ypxxzar5v5cqp5336eqcvsmkx9507p6r82ekralj82jl3npv0v2k8auj2kkgmc9l68mmmzkxvpcnzd3feyygp8hw6wq2qup6f97zfjlm2hzhlk4a9veegqstahde
{
   "id" : 1,
   "payment_hash" : "a6e482c538b6e2469a0d47c35319783b3987b3c542aa8dc4623dfca91d288a96",
   "destination" : "03933884aaf1d6b108397e5efe5c86bcf2d8ca8d2f700eda99db9214fc2712b134",
   "msatoshi" : 1200000,
   "amount_msat" : "1200000msat",
   "msatoshi_sent" : 1201035,
   "amount_sent_msat" : "1201035msat",
   "created_at" : 1560268918,
   "status" : "complete",
   "payment_preimage" : "c718e470dcf429280c611afba095c7396e219d60e590c6ee6beca8042f616483",
   "bolt11" : "lntb12u1pw0ljy4pp55mjg93fckm3ydxsdglp4xxtc8vuc0v79g24gm3rz8h72j8fg32tqdp2xys9xct5da3kx6twv9kk7m3qg3hkccm9ypxxzar5v5cqp5336eqcvsmkx9507p6r82ekralj82jl3npv0v2k8auj2kkgmc9l68mmmzkxvpcnzd3feyygp8hw6wq2qup6f97zfjlm2hzhlk4a9veegqstahde"
}

$ lightning-cli listpeers
{
   "peers" : [
      {
         "id" : "02312627fdf07fbdd7e5ddb136611bdde9b00d26821d14d94891395452f67af248",
         "connected" : true,
         "netaddr" : [
            "23.237.77.12:9735"
         ],
         "globalfeatures" : "",
         "localfeatures" : "82",
         "channels" : [
            {
               "state" : "CHANNELD_NORMAL",
               "scratch_txid" : "e7a65a4f1e625a218baf640a154b04bdf06aa922ff1970ee64cbb3f0046b7866",
               "owner" : "lightning_channeld",
               "short_channel_id" : "1542376x20x0",
               "direction" : 1,
               "channel_id" : "6673cb8effd2bae6e0168949fcd8581acd1f6149f0966b568e8900d384f0729c",
               "funding_txid" : "9c72f084d300898e566b96f049611fcd1a58d8fc498916e0e6bad2ff8ecb7366",
               "private" : false,
               "funding_allocation_msat" : {
                  "02312627fdf07fbdd7e5ddb136611bdde9b00d26821d14d94891395452f67af248" : 0,
                  "023a41771d55140a27c35687727a4b51bc6b58254129bd216fb000f405b7701cb4" : 20000000
               },
               "funding_msat" : {
                  "02312627fdf07fbdd7e5ddb136611bdde9b00d26821d14d94891395452f67af248" : "0msat",
                  "023a41771d55140a27c35687727a4b51bc6b58254129bd216fb000f405b7701cb4" : "20000000msat"
               },
               "msatoshi_to_us" : 18798965,
               "to_us_msat" : "18798965msat",
               "msatoshi_to_us_min" : 18798965,
               "min_to_us_msat" : "18798965msat",
               "msatoshi_to_us_max" : 20000000,
               "max_to_us_msat" : "20000000msat",
               "msatoshi_total" : 20000000,
               "total_msat" : "20000000msat",
               "dust_limit_satoshis" : 546,
               "dust_limit_msat" : "546000msat",
               "max_htlc_value_in_flight_msat" : 18446744073709551615,
               "max_total_htlc_in_msat" : "18446744073709551615msat",
               "their_channel_reserve_satoshis" : 546,
               "their_reserve_msat" : "546000msat",
               "our_channel_reserve_satoshis" : 546,
               "our_reserve_msat" : "546000msat",
               "spendable_msatoshi" : 18252965,
               "spendable_msat" : "18252965msat",
               "htlc_minimum_msat" : 0,
               "minimum_htlc_in_msat" : "0msat",
               "their_to_self_delay" : 6,
               "our_to_self_delay" : 144,
               "max_accepted_htlcs" : 483,
               "status" : [
                  "CHANNELD_NORMAL:Reconnected, and reestablished.",
                  "CHANNELD_NORMAL:Funding transaction locked. Channel announced."
               ],
               "in_payments_offered" : 0,
               "in_msatoshi_offered" : 0,
               "in_offered_msat" : "0msat",
               "in_payments_fulfilled" : 0,
               "in_msatoshi_fulfilled" : 0,
               "in_fulfilled_msat" : "0msat",
               "out_payments_offered" : 2,
               "out_msatoshi_offered" : 2402049,
               "out_offered_msat" : "2402049msat",
               "out_payments_fulfilled" : 1,
               "out_msatoshi_fulfilled" : 1201035,
               "out_fulfilled_msat" : "1201035msat",
               "htlcs" : []
            }
         ]
      }
   ]
}


Related Questions


Updated November 05, 2018 18:27 PM

Updated January 13, 2019 17:27 PM

Updated February 07, 2019 14:27 PM

Updated February 11, 2019 11:27 AM

Updated May 02, 2019 23:27 PM