This commit is contained in:
boufni95 2023-10-23 19:53:52 +02:00
parent e59373f707
commit eff1c204eb

View file

@ -1,6 +1,6 @@
import { OpenChannelRequest } from "../../../proto/lnd/lightning"; import { OpenChannelRequest } from "../../../proto/lnd/lightning";
import { SendPaymentRequest } from "../../../proto/lnd/router"; import { SendPaymentRequest } from "../../../proto/lnd/router";
//@ts-ignore
export const PayInvoiceReq = (invoice: string, amount: number, feeLimit: number): SendPaymentRequest => ({ export const PayInvoiceReq = (invoice: string, amount: number, feeLimit: number): SendPaymentRequest => ({
amt: BigInt(amount), amt: BigInt(amount),
feeLimitSat: BigInt(feeLimit), feeLimitSat: BigInt(feeLimit),
@ -25,4 +25,6 @@ export const PayInvoiceReq = (invoice: string, amount: number, feeLimit: number)
paymentHash: Buffer.alloc(0), paymentHash: Buffer.alloc(0),
routeHints: [], routeHints: [],
timePref: 0, timePref: 0,
outgoingChanId: '0'
}) })