Class LnrpcSendRequest

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

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

  • Constructor Details

    • LnrpcSendRequest

      public LnrpcSendRequest()
  • Method Details

    • dest

      public LnrpcSendRequest dest(byte[] dest)
    • getDest

      @Nullable public byte[] getDest()
      The identity pubkey of the payment recipient. When using REST, this field must be encoded as base64.
      Returns:
      dest
    • setDest

      public void setDest(byte[] dest)
    • destString

      public LnrpcSendRequest destString(String destString)
    • getDestString

      @Nullable public String getDestString()
      The hex-encoded identity pubkey of the payment recipient. Deprecated now that the REST gateway supports base64 encoding of bytes fields.
      Returns:
      destString
    • setDestString

      public void setDestString(String destString)
    • amt

      public LnrpcSendRequest amt(String amt)
    • getAmt

      @Nullable public String getAmt()
      The amount to send expressed in satoshis. The fields amt and amt_msat are mutually exclusive.
      Returns:
      amt
    • setAmt

      public void setAmt(String amt)
    • amtMsat

      public LnrpcSendRequest amtMsat(String amtMsat)
    • getAmtMsat

      @Nullable public String getAmtMsat()
      The amount to send expressed in millisatoshis. The fields amt and amt_msat are mutually exclusive.
      Returns:
      amtMsat
    • setAmtMsat

      public void setAmtMsat(String amtMsat)
    • paymentHash

      public LnrpcSendRequest paymentHash(byte[] paymentHash)
    • getPaymentHash

      @Nullable public byte[] getPaymentHash()
      The hash to use within the payment's HTLC. When using REST, this field must be encoded as base64.
      Returns:
      paymentHash
    • setPaymentHash

      public void setPaymentHash(byte[] paymentHash)
    • paymentHashString

      public LnrpcSendRequest paymentHashString(String paymentHashString)
    • getPaymentHashString

      @Nullable public String getPaymentHashString()
      The hex-encoded hash to use within the payment's HTLC. Deprecated now that the REST gateway supports base64 encoding of bytes fields.
      Returns:
      paymentHashString
    • setPaymentHashString

      public void setPaymentHashString(String paymentHashString)
    • paymentRequest

      public LnrpcSendRequest paymentRequest(String paymentRequest)
    • getPaymentRequest

      @Nullable public String getPaymentRequest()
      A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient.
      Returns:
      paymentRequest
    • setPaymentRequest

      public void setPaymentRequest(String paymentRequest)
    • finalCltvDelta

      public LnrpcSendRequest finalCltvDelta(Integer finalCltvDelta)
    • getFinalCltvDelta

      @Nullable public Integer getFinalCltvDelta()
      The CLTV delta from the current height that should be used to set the timelock for the final hop.
      Returns:
      finalCltvDelta
    • setFinalCltvDelta

      public void setFinalCltvDelta(Integer finalCltvDelta)
    • feeLimit

      public LnrpcSendRequest feeLimit(LnrpcFeeLimit feeLimit)
    • getFeeLimit

      @Nullable public LnrpcFeeLimit getFeeLimit()
      Get feeLimit
      Returns:
      feeLimit
    • setFeeLimit

      public void setFeeLimit(LnrpcFeeLimit feeLimit)
    • outgoingChanId

      public LnrpcSendRequest outgoingChanId(String outgoingChanId)
    • getOutgoingChanId

      @Nullable public String getOutgoingChanId()
      The channel id of the channel that must be taken to the first hop. If zero, any channel may be used.
      Returns:
      outgoingChanId
    • setOutgoingChanId

      public void setOutgoingChanId(String outgoingChanId)
    • lastHopPubkey

      public LnrpcSendRequest lastHopPubkey(byte[] lastHopPubkey)
    • getLastHopPubkey

      @Nullable public byte[] getLastHopPubkey()
      The pubkey of the last hop of the route. If empty, any hop may be used.
      Returns:
      lastHopPubkey
    • setLastHopPubkey

      public void setLastHopPubkey(byte[] lastHopPubkey)
    • cltvLimit

      public LnrpcSendRequest cltvLimit(Long cltvLimit)
    • getCltvLimit

      @Nullable public Long getCltvLimit()
      An optional maximum total time lock for the route. This should not exceed lnd's `--max-cltv-expiry` setting. If zero, then the value of `--max-cltv-expiry` is enforced.
      Returns:
      cltvLimit
    • setCltvLimit

      public void setCltvLimit(Long cltvLimit)
    • destCustomRecords

      public LnrpcSendRequest destCustomRecords(Map<String,byte[]> destCustomRecords)
    • putDestCustomRecordsItem

      public LnrpcSendRequest putDestCustomRecordsItem(String key, byte[] destCustomRecordsItem)
    • getDestCustomRecords

      @Nullable public Map<String,byte[]> getDestCustomRecords()
      An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
      Returns:
      destCustomRecords
    • setDestCustomRecords

      public void setDestCustomRecords(Map<String,byte[]> destCustomRecords)
    • allowSelfPayment

      public LnrpcSendRequest allowSelfPayment(Boolean allowSelfPayment)
    • getAllowSelfPayment

      @Nullable public Boolean getAllowSelfPayment()
      If set, circular payments to self are permitted.
      Returns:
      allowSelfPayment
    • setAllowSelfPayment

      public void setAllowSelfPayment(Boolean allowSelfPayment)
    • destFeatures

      public LnrpcSendRequest destFeatures(List<LnrpcFeatureBit> destFeatures)
    • addDestFeaturesItem

      public LnrpcSendRequest addDestFeaturesItem(LnrpcFeatureBit destFeaturesItem)
    • getDestFeatures

      @Nullable public List<LnrpcFeatureBit> getDestFeatures()
      Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
      Returns:
      destFeatures
    • setDestFeatures

      public void setDestFeatures(List<LnrpcFeatureBit> destFeatures)
    • paymentAddr

      public LnrpcSendRequest paymentAddr(byte[] paymentAddr)
    • getPaymentAddr

      @Nullable public byte[] getPaymentAddr()
      The payment address of the generated invoice.
      Returns:
      paymentAddr
    • setPaymentAddr

      public void setPaymentAddr(byte[] paymentAddr)
    • 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