PayToOpenRequest

fun PayToOpenRequest(chainHash: ByteVector32, fundingSatoshis: Satoshi, amountMsat: MilliSatoshi, payToOpenMinAmountMsat: MilliSatoshi, payToOpenFeeSatoshis: Satoshi, paymentHash: ByteVector32, expireAt: Long, finalPacket: OnionRoutingPacket)

Parameters

chainHash

chain we're on.

fundingSatoshis

total capacity of the channel our peer will open to us (some of the funds may be on their side).

amountMsat

payment amount covered by this new channel: we will receive push_msat = amountMsat - fees.

payToOpenMinAmountMsat

minimum amount for a pay-to-open to be attempted, this should be compared to the total amount in the case of an MPP payment.

payToOpenFeeSatoshis

fees that will be deducted from the amount pushed to us (this fee covers the on-chain fees our peer will pay to open the channel).

paymentHash

payment hash.

expireAt

after the proposal expires, our peer will fail the payment and won't open a channel to us.

finalPacket

onion packet that we would have received if there had been a channel to forward the payment to.