Function FlashNode.paymentRouter

Routes an onion-encrypted payment to the given channel ID.

void paymentRouter (
  in ref const(PublicKey) reg_pk,
  in ref const(geod24.bitblob.BitBlob!(64L)) chan_id,
  in ref const(geod24.bitblob.BitBlob!(64L)) payment_hash,
  in const(Amount) amount,
  in const(Height) lock_height,
  in ref const(OnionPacket) packet
) @safe;

Parameters

NameDescription
reg_pk the registered public key
chan_id the channel ID to route the payment to
payment_hash the payment hash to use
amount the amount to use
lock_height the lock the HTLC will use
packet the onion-encrypted packet for the channel counter-party

Returns

Error code