diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 89e76b1d..957a877f 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -657,9 +657,11 @@ func addInvoice(ctx *cli.Context) error { } printRespJson(struct { - RHash string `json:"r_hash"` + RHash string `json:"r_hash"` + PayReq string `json:"pay_req"` }{ - RHash: hex.EncodeToString(resp.RHash), + RHash: hex.EncodeToString(resp.RHash), + PayReq: resp.PaymentRequest, }) return nil