Class LnrpcChannelUpdate

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

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

  • Constructor Details

    • LnrpcChannelUpdate

      public LnrpcChannelUpdate()
  • Method Details

    • signature

      public LnrpcChannelUpdate signature(byte[] signature)
    • getSignature

      @Nullable public byte[] getSignature()
      The signature that validates the announced data and proves the ownership of node id.
      Returns:
      signature
    • setSignature

      public void setSignature(byte[] signature)
    • chainHash

      public LnrpcChannelUpdate chainHash(byte[] chainHash)
    • getChainHash

      @Nullable public byte[] getChainHash()
      The target chain that this channel was opened within. This value should be the genesis hash of the target chain. Along with the short channel ID, this uniquely identifies the channel globally in a blockchain.
      Returns:
      chainHash
    • setChainHash

      public void setChainHash(byte[] chainHash)
    • chanId

      public LnrpcChannelUpdate chanId(String chanId)
    • getChanId

      @Nullable public String getChanId()
      The unique description of the funding transaction.
      Returns:
      chanId
    • setChanId

      public void setChanId(String chanId)
    • timestamp

      public LnrpcChannelUpdate timestamp(Long timestamp)
    • getTimestamp

      @Nullable public Long getTimestamp()
      A timestamp that allows ordering in the case of multiple announcements. We should ignore the message if timestamp is not greater than the last-received.
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(Long timestamp)
    • messageFlags

      public LnrpcChannelUpdate messageFlags(Long messageFlags)
    • getMessageFlags

      @Nullable public Long getMessageFlags()
      The bitfield that describes whether optional fields are present in this update. Currently, the least-significant bit must be set to 1 if the optional field MaxHtlc is present.
      Returns:
      messageFlags
    • setMessageFlags

      public void setMessageFlags(Long messageFlags)
    • channelFlags

      public LnrpcChannelUpdate channelFlags(Long channelFlags)
    • getChannelFlags

      @Nullable public Long getChannelFlags()
      The bitfield that describes additional meta-data concerning how the update is to be interpreted. Currently, the least-significant bit must be set to 0 if the creating node corresponds to the first node in the previously sent channel announcement and 1 otherwise. If the second bit is set, then the channel is set to be disabled.
      Returns:
      channelFlags
    • setChannelFlags

      public void setChannelFlags(Long channelFlags)
    • timeLockDelta

      public LnrpcChannelUpdate timeLockDelta(Long timeLockDelta)
    • getTimeLockDelta

      @Nullable public Long getTimeLockDelta()
      The minimum number of blocks this node requires to be added to the expiry of HTLCs. This is a security parameter determined by the node operator. This value represents the required gap between the time locks of the incoming and outgoing HTLC's set to this node.
      Returns:
      timeLockDelta
    • setTimeLockDelta

      public void setTimeLockDelta(Long timeLockDelta)
    • htlcMinimumMsat

      public LnrpcChannelUpdate htlcMinimumMsat(String htlcMinimumMsat)
    • getHtlcMinimumMsat

      @Nullable public String getHtlcMinimumMsat()
      The minimum HTLC value which will be accepted.
      Returns:
      htlcMinimumMsat
    • setHtlcMinimumMsat

      public void setHtlcMinimumMsat(String htlcMinimumMsat)
    • baseFee

      public LnrpcChannelUpdate baseFee(Long baseFee)
    • getBaseFee

      @Nullable public Long getBaseFee()
      The base fee that must be used for incoming HTLC's to this particular channel. This value will be tacked onto the required for a payment independent of the size of the payment.
      Returns:
      baseFee
    • setBaseFee

      public void setBaseFee(Long baseFee)
    • feeRate

      public LnrpcChannelUpdate feeRate(Long feeRate)
    • getFeeRate

      @Nullable public Long getFeeRate()
      The fee rate that will be charged per millionth of a satoshi.
      Returns:
      feeRate
    • setFeeRate

      public void setFeeRate(Long feeRate)
    • htlcMaximumMsat

      public LnrpcChannelUpdate htlcMaximumMsat(String htlcMaximumMsat)
    • getHtlcMaximumMsat

      @Nullable public String getHtlcMaximumMsat()
      The maximum HTLC value which will be accepted.
      Returns:
      htlcMaximumMsat
    • setHtlcMaximumMsat

      public void setHtlcMaximumMsat(String htlcMaximumMsat)
    • extraOpaqueData

      public LnrpcChannelUpdate extraOpaqueData(byte[] extraOpaqueData)
    • getExtraOpaqueData

      @Nullable public byte[] getExtraOpaqueData()
      The set of data that was appended to this message, some of which we may not actually know how to iterate or parse. By holding onto this data, we ensure that we're able to properly validate the set of signatures that cover these new fields, and ensure we're able to make upgrades to the network in a forwards compatible manner.
      Returns:
      extraOpaqueData
    • setExtraOpaqueData

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