Package net.osslabz.lnd.dto
Class LnrpcRoute
java.lang.Object
net.osslabz.lnd.dto.LnrpcRoute
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcRoute
extends Object
A path through the channel graph which runs over one or more channels in succession. This struct carries all the information required to craft the Sphinx onion packet, and send the payment along the first hop in the path. A route is only selected as valid if all the channels have sufficient capacity to carry the initial payment amount after fees are accounted for.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHopsItem(LnrpcHop hopsItem) booleangetHops()Contains details concerning the specific forwarding details at each hop.The total amount of funds required to complete a payment over this route.The total amount in millisatoshis.The sum of the fees paid at each hop within the final route.The total fees in millisatoshis.The cumulative (final) time lock across the entire route.inthashCode()voidvoidsetTotalAmt(String totalAmt) voidsetTotalAmtMsat(String totalAmtMsat) voidsetTotalFees(String totalFees) voidsetTotalFeesMsat(String totalFeesMsat) voidsetTotalTimeLock(Long totalTimeLock) toString()totalAmtMsat(String totalAmtMsat) totalFeesMsat(String totalFeesMsat) totalTimeLock(Long totalTimeLock)
-
Field Details
-
SERIALIZED_NAME_TOTAL_TIME_LOCK
- See Also:
-
SERIALIZED_NAME_TOTAL_FEES
- See Also:
-
SERIALIZED_NAME_TOTAL_AMT
- See Also:
-
SERIALIZED_NAME_HOPS
- See Also:
-
SERIALIZED_NAME_TOTAL_FEES_MSAT
- See Also:
-
SERIALIZED_NAME_TOTAL_AMT_MSAT
- See Also:
-
-
Constructor Details
-
LnrpcRoute
public LnrpcRoute()
-
-
Method Details
-
totalTimeLock
-
getTotalTimeLock
The cumulative (final) time lock across the entire route. This is the CLTV value that should be extended to the first hop in the route. All other hops will decrement the time-lock as advertised, leaving enough time for all hops to wait for or present the payment preimage to complete the payment.- Returns:
- totalTimeLock
-
setTotalTimeLock
-
totalFees
-
getTotalFees
The sum of the fees paid at each hop within the final route. In the case of a one-hop payment, this value will be zero as we don't need to pay a fee to ourselves.- Returns:
- totalFees
-
setTotalFees
-
totalAmt
-
getTotalAmt
The total amount of funds required to complete a payment over this route. This value includes the cumulative fees at each hop. As a result, the HTLC extended to the first-hop in the route will need to have at least this many satoshis, otherwise the route will fail at an intermediate node due to an insufficient amount of fees.- Returns:
- totalAmt
-
setTotalAmt
-
hops
-
addHopsItem
-
getHops
Contains details concerning the specific forwarding details at each hop.- Returns:
- hops
-
setHops
-
totalFeesMsat
-
getTotalFeesMsat
The total fees in millisatoshis.- Returns:
- totalFeesMsat
-
setTotalFeesMsat
-
totalAmtMsat
-
getTotalAmtMsat
The total amount in millisatoshis.- Returns:
- totalAmtMsat
-
setTotalAmtMsat
-
equals
-
hashCode
public int hashCode() -
toString
-