diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 4ef4237c..bcd39840 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -680,7 +680,13 @@ func sendPaymentCommand(ctx *cli.Context) error { paymentStream.CloseSend() - printRespJson(resp) + printJson(struct { + P string `json:"payment_preimage"` + R *lnrpc.Route `json:"payment_route"` + }{ + P: hex.EncodeToString(resp.PaymentPreimage), + R: resp.PaymentRoute, + }) return nil }