Class LnrpcChannelEdge

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-07T12:03:34.958542131Z[Etc/UTC]") public class LnrpcChannelEdge extends Object
A fully authenticated channel along with all its unique attributes. Once an authenticated channel announcement has been processed on the network, then an instance of ChannelEdgeInfo encapsulating the channels attributes is stored. The other portions relevant to routing policy of a channel are stored within a ChannelEdgePolicy for each direction of the channel.
  • Field Details

  • Constructor Details

    • LnrpcChannelEdge

      public LnrpcChannelEdge()
  • Method Details

    • channelId

      public LnrpcChannelEdge channelId(String channelId)
    • getChannelId

      @Nullable public String getChannelId()
      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:
      channelId
    • setChannelId

      public void setChannelId(String channelId)
    • chanPoint

      public LnrpcChannelEdge chanPoint(String chanPoint)
    • getChanPoint

      @Nullable public String getChanPoint()
      Get chanPoint
      Returns:
      chanPoint
    • setChanPoint

      public void setChanPoint(String chanPoint)
    • lastUpdate

      public LnrpcChannelEdge lastUpdate(Long lastUpdate)
    • getLastUpdate

      @Nullable public Long getLastUpdate()
      Get lastUpdate
      Returns:
      lastUpdate
    • setLastUpdate

      public void setLastUpdate(Long lastUpdate)
    • node1Pub

      public LnrpcChannelEdge node1Pub(String node1Pub)
    • getNode1Pub

      @Nullable public String getNode1Pub()
      Get node1Pub
      Returns:
      node1Pub
    • setNode1Pub

      public void setNode1Pub(String node1Pub)
    • node2Pub

      public LnrpcChannelEdge node2Pub(String node2Pub)
    • getNode2Pub

      @Nullable public String getNode2Pub()
      Get node2Pub
      Returns:
      node2Pub
    • setNode2Pub

      public void setNode2Pub(String node2Pub)
    • capacity

      public LnrpcChannelEdge capacity(String capacity)
    • getCapacity

      @Nullable public String getCapacity()
      Get capacity
      Returns:
      capacity
    • setCapacity

      public void setCapacity(String capacity)
    • node1Policy

      public LnrpcChannelEdge node1Policy(LnrpcRoutingPolicy node1Policy)
    • getNode1Policy

      @Nullable public LnrpcRoutingPolicy getNode1Policy()
      Get node1Policy
      Returns:
      node1Policy
    • setNode1Policy

      public void setNode1Policy(LnrpcRoutingPolicy node1Policy)
    • node2Policy

      public LnrpcChannelEdge node2Policy(LnrpcRoutingPolicy node2Policy)
    • getNode2Policy

      @Nullable public LnrpcRoutingPolicy getNode2Policy()
      Get node2Policy
      Returns:
      node2Policy
    • setNode2Policy

      public void setNode2Policy(LnrpcRoutingPolicy node2Policy)
    • customRecords

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

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

      @Nullable public Map<String,byte[]> getCustomRecords()
      Custom channel announcement tlv records.
      Returns:
      customRecords
    • setCustomRecords

      public void setCustomRecords(Map<String,byte[]> customRecords)
    • 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