Class LnrpcHop

java.lang.Object
net.osslabz.lnd.dto.LnrpcHop

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-07T12:03:34.958542131Z[Etc/UTC]") public class LnrpcHop extends Object
LnrpcHop
  • Field Details

  • Constructor Details

    • LnrpcHop

      public LnrpcHop()
  • Method Details

    • chanId

      public LnrpcHop chanId(String chanId)
    • getChanId

      @Nullable public String getChanId()
      The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel.
      Returns:
      chanId
    • setChanId

      public void setChanId(String chanId)
    • chanCapacity

      public LnrpcHop chanCapacity(String chanCapacity)
    • getChanCapacity

      @Nullable public String getChanCapacity()
      Get chanCapacity
      Returns:
      chanCapacity
    • setChanCapacity

      public void setChanCapacity(String chanCapacity)
    • amtToForward

      public LnrpcHop amtToForward(String amtToForward)
    • getAmtToForward

      @Nullable public String getAmtToForward()
      Get amtToForward
      Returns:
      amtToForward
    • setAmtToForward

      public void setAmtToForward(String amtToForward)
    • fee

      public LnrpcHop fee(String fee)
    • getFee

      @Nullable public String getFee()
      Get fee
      Returns:
      fee
    • setFee

      public void setFee(String fee)
    • expiry

      public LnrpcHop expiry(Long expiry)
    • getExpiry

      @Nullable public Long getExpiry()
      Get expiry
      Returns:
      expiry
    • setExpiry

      public void setExpiry(Long expiry)
    • amtToForwardMsat

      public LnrpcHop amtToForwardMsat(String amtToForwardMsat)
    • getAmtToForwardMsat

      @Nullable public String getAmtToForwardMsat()
      Get amtToForwardMsat
      Returns:
      amtToForwardMsat
    • setAmtToForwardMsat

      public void setAmtToForwardMsat(String amtToForwardMsat)
    • feeMsat

      public LnrpcHop feeMsat(String feeMsat)
    • getFeeMsat

      @Nullable public String getFeeMsat()
      Get feeMsat
      Returns:
      feeMsat
    • setFeeMsat

      public void setFeeMsat(String feeMsat)
    • pubKey

      public LnrpcHop pubKey(String pubKey)
    • getPubKey

      @Nullable public String getPubKey()
      An optional public key of the hop. If the public key is given, the payment can be executed without relying on a copy of the channel graph.
      Returns:
      pubKey
    • setPubKey

      public void setPubKey(String pubKey)
    • tlvPayload

      public LnrpcHop tlvPayload(Boolean tlvPayload)
    • getTlvPayload

      @Nullable public Boolean getTlvPayload()
      If set to true, then this hop will be encoded using the new variable length TLV format. Note that if any custom tlv_records below are specified, then this field MUST be set to true for them to be encoded properly.
      Returns:
      tlvPayload
    • setTlvPayload

      public void setTlvPayload(Boolean tlvPayload)
    • mppRecord

      public LnrpcHop mppRecord(LnrpcMPPRecord mppRecord)
    • getMppRecord

      @Nullable public LnrpcMPPRecord getMppRecord()
      Get mppRecord
      Returns:
      mppRecord
    • setMppRecord

      public void setMppRecord(LnrpcMPPRecord mppRecord)
    • ampRecord

      public LnrpcHop ampRecord(LnrpcAMPRecord ampRecord)
    • getAmpRecord

      @Nullable public LnrpcAMPRecord getAmpRecord()
      Get ampRecord
      Returns:
      ampRecord
    • setAmpRecord

      public void setAmpRecord(LnrpcAMPRecord ampRecord)
    • customRecords

      public LnrpcHop customRecords(Map<String,byte[]> customRecords)
    • putCustomRecordsItem

      public LnrpcHop putCustomRecordsItem(String key, byte[] customRecordsItem)
    • getCustomRecords

      @Nullable public Map<String,byte[]> getCustomRecords()
      An optional set of key-value TLV records. This is useful within the context of the SendToRoute call as it allows callers to specify arbitrary K-V pairs to drop off at each hop within the onion.
      Returns:
      customRecords
    • setCustomRecords

      public void setCustomRecords(Map<String,byte[]> customRecords)
    • metadata

      public LnrpcHop metadata(byte[] metadata)
    • getMetadata

      @Nullable public byte[] getMetadata()
      The payment metadata to send along with the payment to the payee.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(byte[] metadata)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object