Speaking of routing fees, they wont show up in `lncli feereport` but you can copy paste the payment hashes from the logs to a script like this to see how much you made:

```

lnproxy$ cat ./proxyfee

#!/bin/sh

{

lncli trackpayment --json $1 | jq -r '(.value_msat | tonumber) + (.fee_msat | tonumber)'

lncli lookupinvoice $1 | jq -r '.amt_paid_msat'

} |

awk '

NR == 1 {paid=$1 ; printf "paid: %0.0f\n", $1/1000}

NR == 2 {got=$1 ; printf " got: %0.0f\n", $1/1000}

END {printf "diff: %0.0f\n", (got - paid)/1000}

'

```

Run with `./proxyfee `

Reply to this note

Please Login to reply.

Discussion

No replies yet.