buildCommand

fun buildCommand(paymentId: UUID, paymentHash: ByteVector32, hops: List<ChannelHop>, finalPayload: PaymentOnion.FinalPayload): Pair<CMD_ADD_HTLC, SharedSecrets>

Build the command to add an HTLC with the given final payload and using the provided hops.

Return

the command and the onion shared secrets (used to decrypt the error in case of payment failure)