Class LnrpcChannelAcceptResponse

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

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

  • Constructor Details

    • LnrpcChannelAcceptResponse

      public LnrpcChannelAcceptResponse()
  • Method Details

    • accept

      public LnrpcChannelAcceptResponse accept(Boolean accept)
    • getAccept

      @Nullable public Boolean getAccept()
      Whether or not the client accepts the channel.
      Returns:
      accept
    • setAccept

      public void setAccept(Boolean accept)
    • pendingChanId

      public LnrpcChannelAcceptResponse pendingChanId(byte[] pendingChanId)
    • getPendingChanId

      @Nullable public byte[] getPendingChanId()
      The pending channel id to which this response applies.
      Returns:
      pendingChanId
    • setPendingChanId

      public void setPendingChanId(byte[] pendingChanId)
    • error

      public LnrpcChannelAcceptResponse error(String error)
    • getError

      @Nullable public String getError()
      An optional error to send the initiating party to indicate why the channel was rejected. This field *should not* contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.
      Returns:
      error
    • setError

      public void setError(String error)
    • upfrontShutdown

      public LnrpcChannelAcceptResponse upfrontShutdown(String upfrontShutdown)
    • getUpfrontShutdown

      @Nullable public String getUpfrontShutdown()
      The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.
      Returns:
      upfrontShutdown
    • setUpfrontShutdown

      public void setUpfrontShutdown(String upfrontShutdown)
    • csvDelay

      public LnrpcChannelAcceptResponse csvDelay(Long csvDelay)
    • getCsvDelay

      @Nullable public Long getCsvDelay()
      The csv delay (in blocks) that we require for the remote party.
      Returns:
      csvDelay
    • setCsvDelay

      public void setCsvDelay(Long csvDelay)
    • reserveSat

      public LnrpcChannelAcceptResponse reserveSat(String reserveSat)
    • getReserveSat

      @Nullable public String getReserveSat()
      The reserve amount in satoshis that we require the remote peer to adhere to. We require that the remote peer always have some reserve amount allocated to them so that there is always a disincentive to broadcast old state (if they hold 0 sats on their side of the channel, there is nothing to lose).
      Returns:
      reserveSat
    • setReserveSat

      public void setReserveSat(String reserveSat)
    • inFlightMaxMsat

      public LnrpcChannelAcceptResponse inFlightMaxMsat(String inFlightMaxMsat)
    • getInFlightMaxMsat

      @Nullable public String getInFlightMaxMsat()
      The maximum amount of funds in millisatoshis that we allow the remote peer to have in outstanding htlcs.
      Returns:
      inFlightMaxMsat
    • setInFlightMaxMsat

      public void setInFlightMaxMsat(String inFlightMaxMsat)
    • maxHtlcCount

      public LnrpcChannelAcceptResponse maxHtlcCount(Long maxHtlcCount)
    • getMaxHtlcCount

      @Nullable public Long getMaxHtlcCount()
      The maximum number of htlcs that the remote peer can offer us.
      Returns:
      maxHtlcCount
    • setMaxHtlcCount

      public void setMaxHtlcCount(Long maxHtlcCount)
    • minHtlcIn

      public LnrpcChannelAcceptResponse minHtlcIn(String minHtlcIn)
    • getMinHtlcIn

      @Nullable public String getMinHtlcIn()
      The minimum value in millisatoshis for incoming htlcs on the channel.
      Returns:
      minHtlcIn
    • setMinHtlcIn

      public void setMinHtlcIn(String minHtlcIn)
    • minAcceptDepth

      public LnrpcChannelAcceptResponse minAcceptDepth(Long minAcceptDepth)
    • getMinAcceptDepth

      @Nullable public Long getMinAcceptDepth()
      The number of confirmations we require before we consider the channel open.
      Returns:
      minAcceptDepth
    • setMinAcceptDepth

      public void setMinAcceptDepth(Long minAcceptDepth)
    • zeroConf

      public LnrpcChannelAcceptResponse zeroConf(Boolean zeroConf)
    • getZeroConf

      @Nullable public Boolean getZeroConf()
      Whether the responder wants this to be a zero-conf channel. This will fail if either side does not have the scid-alias feature bit set. The minimum depth field must be zero if this is true.
      Returns:
      zeroConf
    • setZeroConf

      public void setZeroConf(Boolean zeroConf)
    • 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