Pay To Open Request
fun PayToOpenRequest(chainHash: ByteVector32, fundingSatoshis: Satoshi, amountMsat: MilliSatoshi, payToOpenMinAmountMsat: MilliSatoshi, payToOpenFeeSatoshis: Satoshi, paymentHash: ByteVector32, expireAt: Long, finalPacket: OnionRoutingPacket)
Content copied to clipboard
Parameters
chain Hash
chain we're on.
funding Satoshis
total capacity of the channel our peer will open to us (some of the funds may be on their side).
amount Msat
payment amount covered by this new channel: we will receive push_msat = amountMsat - fees.
pay To Open Min Amount Msat
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.
pay To Open Fee Satoshis
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).
payment Hash
payment hash.
expire At
after the proposal expires, our peer will fail the payment and won't open a channel to us.
final Packet
onion packet that we would have received if there had been a channel to forward the payment to.