Package net.osslabz.lnd.dto
Class LnrpcChannel
java.lang.Object
net.osslabz.lnd.dto.LnrpcChannel
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcChannel
extends Object
LnrpcChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAliasScidsItem(String aliasScidsItem) addPendingHtlcsItem(LnrpcHTLC pendingHtlcsItem) aliasScids(List<String> aliasScids) channelPoint(String channelPoint) chanStatusFlags(String chanStatusFlags) closeAddress(String closeAddress) commitmentType(LnrpcCommitmentType commitmentType) commitWeight(String commitWeight) booleanGet activeThis lists out the set of alias short channel ids that exist for a channel.Get capacityThe unique channel ID for the channel.The outpoint (txid:index) of the funding transaction.A set of flags showing the current state of the channel.Close address is the address that we will enforce payout to on cooperative close if the channel was opened utilizing option upfront shutdown.The amount calculated to be paid in fees for the current set of commitment transactions.Get commitmentTypeGet commitWeightDeprecated.The required number of satoshis per kilo-weight that the requester will pay at all times, for both the funding transaction and commitment transaction.True if we were the ones that created the channel.The number of seconds that the channel has been monitored by the channel scoring system.Get localBalanceDeprecated.Get localConstraintsThe total number of updates conducted within this channel.The configured alias name of our peer.The list of active, uncleared HTLCs currently pending within the channel.Whether this channel is advertised to the network or not.The amount that the initiator of the channel optionally pushed to the remote party on channel open.Get remoteBalanceDeprecated.Get remoteConstraintsGet remotePubkeyDeprecated.This uint32 indicates if this channel is to be considered 'frozen'.The total number of satoshis we've received within this channel.The total number of satoshis we've sent within this channel.Get unsettledBalanceThe number of seconds that the remote peer has been observed as being online by the channel scoring system over the lifetime of the channel [EXPERIMENTAL].Whether or not this is a zero-conf channel.This is the confirmed / on-chain zero-conf SCID.inthashCode()localBalance(String localBalance) localChanReserveSat(String localChanReserveSat) localConstraints(LnrpcChannelConstraints localConstraints) numUpdates(String numUpdates) pendingHtlcs(List<LnrpcHTLC> pendingHtlcs) pushAmountSat(String pushAmountSat) remoteBalance(String remoteBalance) remoteChanReserveSat(String remoteChanReserveSat) remoteConstraints(LnrpcChannelConstraints remoteConstraints) remotePubkey(String remotePubkey) voidvoidsetAliasScids(List<String> aliasScids) voidsetCapacity(String capacity) voidvoidsetChannelPoint(String channelPoint) voidsetChanStatusFlags(String chanStatusFlags) voidsetCloseAddress(String closeAddress) voidsetCommitFee(String commitFee) voidsetCommitmentType(LnrpcCommitmentType commitmentType) voidsetCommitWeight(String commitWeight) voidsetCsvDelay(Long csvDelay) voidsetFeePerKw(String feePerKw) voidsetInitiator(Boolean initiator) voidsetLifetime(String lifetime) voidsetLocalBalance(String localBalance) voidsetLocalChanReserveSat(String localChanReserveSat) voidsetLocalConstraints(LnrpcChannelConstraints localConstraints) voidsetNumUpdates(String numUpdates) voidsetPeerAlias(String peerAlias) voidsetPendingHtlcs(List<LnrpcHTLC> pendingHtlcs) voidsetPrivate(Boolean _private) voidsetPushAmountSat(String pushAmountSat) voidsetRemoteBalance(String remoteBalance) voidsetRemoteChanReserveSat(String remoteChanReserveSat) voidsetRemoteConstraints(LnrpcChannelConstraints remoteConstraints) voidsetRemotePubkey(String remotePubkey) voidsetStaticRemoteKey(Boolean staticRemoteKey) voidsetThawHeight(Long thawHeight) voidsetTotalSatoshisReceived(String totalSatoshisReceived) voidsetTotalSatoshisSent(String totalSatoshisSent) voidsetUnsettledBalance(String unsettledBalance) voidvoidsetZeroConf(Boolean zeroConf) voidsetZeroConfConfirmedScid(String zeroConfConfirmedScid) staticRemoteKey(Boolean staticRemoteKey) thawHeight(Long thawHeight) toString()totalSatoshisReceived(String totalSatoshisReceived) totalSatoshisSent(String totalSatoshisSent) unsettledBalance(String unsettledBalance) zeroConfConfirmedScid(String zeroConfConfirmedScid)
-
Field Details
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
SERIALIZED_NAME_REMOTE_PUBKEY
- See Also:
-
SERIALIZED_NAME_CHANNEL_POINT
- See Also:
-
SERIALIZED_NAME_CHAN_ID
- See Also:
-
SERIALIZED_NAME_CAPACITY
- See Also:
-
SERIALIZED_NAME_LOCAL_BALANCE
- See Also:
-
SERIALIZED_NAME_REMOTE_BALANCE
- See Also:
-
SERIALIZED_NAME_COMMIT_FEE
- See Also:
-
SERIALIZED_NAME_COMMIT_WEIGHT
- See Also:
-
SERIALIZED_NAME_FEE_PER_KW
- See Also:
-
SERIALIZED_NAME_UNSETTLED_BALANCE
- See Also:
-
SERIALIZED_NAME_TOTAL_SATOSHIS_SENT
- See Also:
-
SERIALIZED_NAME_TOTAL_SATOSHIS_RECEIVED
- See Also:
-
SERIALIZED_NAME_NUM_UPDATES
- See Also:
-
SERIALIZED_NAME_PENDING_HTLCS
- See Also:
-
SERIALIZED_NAME_CSV_DELAY
- See Also:
-
SERIALIZED_NAME_PRIVATE
- See Also:
-
SERIALIZED_NAME_INITIATOR
- See Also:
-
SERIALIZED_NAME_CHAN_STATUS_FLAGS
- See Also:
-
SERIALIZED_NAME_LOCAL_CHAN_RESERVE_SAT
- See Also:
-
SERIALIZED_NAME_REMOTE_CHAN_RESERVE_SAT
- See Also:
-
SERIALIZED_NAME_STATIC_REMOTE_KEY
- See Also:
-
SERIALIZED_NAME_COMMITMENT_TYPE
- See Also:
-
SERIALIZED_NAME_LIFETIME
- See Also:
-
SERIALIZED_NAME_UPTIME
- See Also:
-
SERIALIZED_NAME_CLOSE_ADDRESS
- See Also:
-
SERIALIZED_NAME_PUSH_AMOUNT_SAT
- See Also:
-
SERIALIZED_NAME_THAW_HEIGHT
- See Also:
-
SERIALIZED_NAME_LOCAL_CONSTRAINTS
- See Also:
-
SERIALIZED_NAME_REMOTE_CONSTRAINTS
- See Also:
-
SERIALIZED_NAME_ALIAS_SCIDS
- See Also:
-
SERIALIZED_NAME_ZERO_CONF
- See Also:
-
SERIALIZED_NAME_ZERO_CONF_CONFIRMED_SCID
- See Also:
-
SERIALIZED_NAME_PEER_ALIAS
- See Also:
-
-
Constructor Details
-
LnrpcChannel
public LnrpcChannel()
-
-
Method Details
-
active
-
getActive
Get active- Returns:
- active
-
setActive
-
remotePubkey
-
getRemotePubkey
Get remotePubkey- Returns:
- remotePubkey
-
setRemotePubkey
-
channelPoint
-
getChannelPoint
The outpoint (txid:index) of the funding transaction. With this value, Bob will be able to generate a signature for Alice's version of the commitment transaction.- Returns:
- channelPoint
-
setChannelPoint
-
chanId
-
getChanId
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:
- chanId
-
setChanId
-
capacity
-
getCapacity
Get capacity- Returns:
- capacity
-
setCapacity
-
localBalance
-
getLocalBalance
Get localBalance- Returns:
- localBalance
-
setLocalBalance
-
remoteBalance
-
getRemoteBalance
Get remoteBalance- Returns:
- remoteBalance
-
setRemoteBalance
-
commitFee
-
getCommitFee
The amount calculated to be paid in fees for the current set of commitment transactions. The fee amount is persisted with the channel in order to allow the fee amount to be removed and recalculated with each channel state update, including updates that happen after a system restart.- Returns:
- commitFee
-
setCommitFee
-
commitWeight
-
getCommitWeight
Get commitWeight- Returns:
- commitWeight
-
setCommitWeight
-
feePerKw
-
getFeePerKw
The required number of satoshis per kilo-weight that the requester will pay at all times, for both the funding transaction and commitment transaction. This value can later be updated once the channel is open.- Returns:
- feePerKw
-
setFeePerKw
-
unsettledBalance
-
getUnsettledBalance
Get unsettledBalance- Returns:
- unsettledBalance
-
setUnsettledBalance
-
totalSatoshisSent
-
getTotalSatoshisSent
The total number of satoshis we've sent within this channel.- Returns:
- totalSatoshisSent
-
setTotalSatoshisSent
-
totalSatoshisReceived
-
getTotalSatoshisReceived
The total number of satoshis we've received within this channel.- Returns:
- totalSatoshisReceived
-
setTotalSatoshisReceived
-
numUpdates
-
getNumUpdates
The total number of updates conducted within this channel.- Returns:
- numUpdates
-
setNumUpdates
-
pendingHtlcs
-
addPendingHtlcsItem
-
getPendingHtlcs
The list of active, uncleared HTLCs currently pending within the channel.- Returns:
- pendingHtlcs
-
setPendingHtlcs
-
csvDelay
-
getCsvDelay
Deprecated. The CSV delay expressed in relative blocks. If the channel is force closed, we will need to wait for this many blocks before we can regain our funds.- Returns:
- csvDelay
-
setCsvDelay
-
_private
-
getPrivate
Whether this channel is advertised to the network or not.- Returns:
- _private
-
setPrivate
-
initiator
-
getInitiator
True if we were the ones that created the channel.- Returns:
- initiator
-
setInitiator
-
chanStatusFlags
-
getChanStatusFlags
A set of flags showing the current state of the channel.- Returns:
- chanStatusFlags
-
setChanStatusFlags
-
localChanReserveSat
-
getLocalChanReserveSat
Deprecated. The minimum satoshis this node is required to reserve in its balance.- Returns:
- localChanReserveSat
-
setLocalChanReserveSat
-
remoteChanReserveSat
-
getRemoteChanReserveSat
Deprecated. The minimum satoshis the other node is required to reserve in its balance.- Returns:
- remoteChanReserveSat
-
setRemoteChanReserveSat
-
staticRemoteKey
-
getStaticRemoteKey
Deprecated. Use commitment_type.- Returns:
- staticRemoteKey
-
setStaticRemoteKey
-
commitmentType
-
getCommitmentType
Get commitmentType- Returns:
- commitmentType
-
setCommitmentType
-
lifetime
-
getLifetime
The number of seconds that the channel has been monitored by the channel scoring system. Scores are currently not persisted, so this value may be less than the lifetime of the channel [EXPERIMENTAL].- Returns:
- lifetime
-
setLifetime
-
uptime
-
getUptime
The number of seconds that the remote peer has been observed as being online by the channel scoring system over the lifetime of the channel [EXPERIMENTAL].- Returns:
- uptime
-
setUptime
-
closeAddress
-
getCloseAddress
Close address is the address that we will enforce payout to on cooperative close if the channel was opened utilizing option upfront shutdown. This value can be set on channel open by setting close_address in an open channel request. If this value is not set, you can still choose a payout address by cooperatively closing with the delivery_address field set.- Returns:
- closeAddress
-
setCloseAddress
-
pushAmountSat
-
getPushAmountSat
The amount that the initiator of the channel optionally pushed to the remote party on channel open. This amount will be zero if the channel initiator did not push any funds to the remote peer. If the initiator field is true, we pushed this amount to our peer, if it is false, the remote peer pushed this amount to us.- Returns:
- pushAmountSat
-
setPushAmountSat
-
thawHeight
-
getThawHeight
This uint32 indicates if this channel is to be considered 'frozen'. A frozen channel doest not allow a cooperative channel close by the initiator. The thaw_height is the height that this restriction stops applying to the channel. This field is optional, not setting it or using a value of zero will mean the channel has no additional restrictions. The height can be interpreted in two ways: as a relative height if the value is less than 500,000, or as an absolute height otherwise.- Returns:
- thawHeight
-
setThawHeight
-
localConstraints
-
getLocalConstraints
Get localConstraints- Returns:
- localConstraints
-
setLocalConstraints
-
remoteConstraints
-
getRemoteConstraints
Get remoteConstraints- Returns:
- remoteConstraints
-
setRemoteConstraints
-
aliasScids
-
addAliasScidsItem
-
getAliasScids
This lists out the set of alias short channel ids that exist for a channel. This may be empty.- Returns:
- aliasScids
-
setAliasScids
-
zeroConf
-
getZeroConf
Whether or not this is a zero-conf channel.- Returns:
- zeroConf
-
setZeroConf
-
zeroConfConfirmedScid
-
getZeroConfConfirmedScid
This is the confirmed / on-chain zero-conf SCID.- Returns:
- zeroConfConfirmedScid
-
setZeroConfConfirmedScid
-
peerAlias
-
getPeerAlias
The configured alias name of our peer.- Returns:
- peerAlias
-
setPeerAlias
-
equals
-
hashCode
public int hashCode() -
toString
-