Package net.osslabz.lnd.dto
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomRecords(Map<String, byte[]> customRecords) booleanGet capacityThe unique channel ID for the channel.Get chanPointCustom channel announcement tlv records.Get lastUpdateGet node1PolicyGet node1PubGet node2PolicyGet node2PubinthashCode()lastUpdate(Long lastUpdate) node1Policy(LnrpcRoutingPolicy node1Policy) node2Policy(LnrpcRoutingPolicy node2Policy) putCustomRecordsItem(String key, byte[] customRecordsItem) voidsetCapacity(String capacity) voidsetChannelId(String channelId) voidsetChanPoint(String chanPoint) voidsetCustomRecords(Map<String, byte[]> customRecords) voidsetLastUpdate(Long lastUpdate) voidsetNode1Policy(LnrpcRoutingPolicy node1Policy) voidsetNode1Pub(String node1Pub) voidsetNode2Policy(LnrpcRoutingPolicy node2Policy) voidsetNode2Pub(String node2Pub) toString()
-
Field Details
-
SERIALIZED_NAME_CHANNEL_ID
- See Also:
-
SERIALIZED_NAME_CHAN_POINT
- See Also:
-
SERIALIZED_NAME_LAST_UPDATE
- See Also:
-
SERIALIZED_NAME_NODE1_PUB
- See Also:
-
SERIALIZED_NAME_NODE2_PUB
- See Also:
-
SERIALIZED_NAME_CAPACITY
- See Also:
-
SERIALIZED_NAME_NODE1_POLICY
- See Also:
-
SERIALIZED_NAME_NODE2_POLICY
- See Also:
-
SERIALIZED_NAME_CUSTOM_RECORDS
- See Also:
-
-
Constructor Details
-
LnrpcChannelEdge
public LnrpcChannelEdge()
-
-
Method Details
-
channelId
-
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
-
chanPoint
-
getChanPoint
Get chanPoint- Returns:
- chanPoint
-
setChanPoint
-
lastUpdate
-
getLastUpdate
Get lastUpdate- Returns:
- lastUpdate
-
setLastUpdate
-
node1Pub
-
getNode1Pub
Get node1Pub- Returns:
- node1Pub
-
setNode1Pub
-
node2Pub
-
getNode2Pub
Get node2Pub- Returns:
- node2Pub
-
setNode2Pub
-
capacity
-
getCapacity
Get capacity- Returns:
- capacity
-
setCapacity
-
node1Policy
-
getNode1Policy
Get node1Policy- Returns:
- node1Policy
-
setNode1Policy
-
node2Policy
-
getNode2Policy
Get node2Policy- Returns:
- node2Policy
-
setNode2Policy
-
customRecords
-
putCustomRecordsItem
-
getCustomRecords
Custom channel announcement tlv records.- Returns:
- customRecords
-
setCustomRecords
-
equals
-
hashCode
public int hashCode() -
toString
-