Package org.ldk.structs
Interface Router.RouterInterface
-
- Enclosing class:
- Router
public static interface Router.RouterInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Result_RouteLightningErrorZfind_route(byte[] payer, RouteParameters route_params, ChannelDetails[] first_hops, InFlightHtlcs inflight_htlcs)Finds a [`Route`] for a payment between the given `payer` and a payee.Result_RouteLightningErrorZfind_route_with_id(byte[] payer, RouteParameters route_params, ChannelDetails[] first_hops, InFlightHtlcs inflight_htlcs, byte[] _payment_hash, byte[] _payment_id)Finds a [`Route`] for a payment between the given `payer` and a payee.
-
-
-
Method Detail
-
find_route
Result_RouteLightningErrorZ find_route(byte[] payer, RouteParameters route_params, ChannelDetails[] first_hops, InFlightHtlcs inflight_htlcs)
Finds a [`Route`] for a payment between the given `payer` and a payee. The `payee` and the payment's value are given in [`RouteParameters::payment_params`] and [`RouteParameters::final_value_msat`], respectively. Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None
-
find_route_with_id
Result_RouteLightningErrorZ find_route_with_id(byte[] payer, RouteParameters route_params, ChannelDetails[] first_hops, InFlightHtlcs inflight_htlcs, byte[] _payment_hash, byte[] _payment_id)
Finds a [`Route`] for a payment between the given `payer` and a payee. The `payee` and the payment's value are given in [`RouteParameters::payment_params`] and [`RouteParameters::final_value_msat`], respectively. Includes a [`PaymentHash`] and a [`PaymentId`] to be able to correlate the request with a specific payment. Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None
-
-