public static final class LightningApi.Channel.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Channel.Builder> implements LightningApi.ChannelOrBuilder
lnrpc.Channel
Modifier and Type | Method and Description |
---|---|
LightningApi.Channel.Builder |
addAliasScids(long value)
This lists out the set of alias short channel ids that exist for a channel.
|
LightningApi.Channel.Builder |
addAllAliasScids(java.lang.Iterable<? extends java.lang.Long> values)
This lists out the set of alias short channel ids that exist for a channel.
|
LightningApi.Channel.Builder |
addAllPendingHtlcs(java.lang.Iterable<? extends LightningApi.HTLC> values)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
addPendingHtlcs(int index,
LightningApi.HTLC.Builder builderForValue)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
addPendingHtlcs(int index,
LightningApi.HTLC value)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
addPendingHtlcs(LightningApi.HTLC.Builder builderForValue)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
addPendingHtlcs(LightningApi.HTLC value)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.HTLC.Builder |
addPendingHtlcsBuilder()
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.HTLC.Builder |
addPendingHtlcsBuilder(int index)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel |
build() |
LightningApi.Channel |
buildPartial() |
LightningApi.Channel.Builder |
clear() |
LightningApi.Channel.Builder |
clearActive()
Whether this channel is active or not
|
LightningApi.Channel.Builder |
clearAliasScids()
This lists out the set of alias short channel ids that exist for a channel.
|
LightningApi.Channel.Builder |
clearCapacity()
The total amount of funds held in this channel
|
LightningApi.Channel.Builder |
clearChanId()
The unique channel ID for the channel.
|
LightningApi.Channel.Builder |
clearChannelPoint()
The outpoint (txid:index) of the funding transaction.
|
LightningApi.Channel.Builder |
clearChanStatusFlags()
A set of flags showing the current state of the channel.
|
LightningApi.Channel.Builder |
clearCloseAddress()
Close address is the address that we will enforce payout to on cooperative
close if the channel was opened utilizing option upfront shutdown.
|
LightningApi.Channel.Builder |
clearCommitFee()
The amount calculated to be paid in fees for the current set of commitment
transactions.
|
LightningApi.Channel.Builder |
clearCommitmentType()
The commitment type used by this channel.
|
LightningApi.Channel.Builder |
clearCommitWeight()
The weight of the commitment transaction
|
LightningApi.Channel.Builder |
clearCsvDelay()
Deprecated.
lnrpc.Channel.csv_delay is deprecated.
See lightning.api.proto;l=1470
|
LightningApi.Channel.Builder |
clearFeePerKw()
The required number of satoshis per kilo-weight that the requester will pay
at all times, for both the funding transaction and commitment transaction.
|
LightningApi.Channel.Builder |
clearInitiator()
True if we were the ones that created the channel.
|
LightningApi.Channel.Builder |
clearLifetime()
The number of seconds that the channel has been monitored by the channel
scoring system.
|
LightningApi.Channel.Builder |
clearLocalBalance()
This node's current balance in this channel
|
LightningApi.Channel.Builder |
clearLocalChanReserveSat()
Deprecated.
lnrpc.Channel.local_chan_reserve_sat is deprecated.
See lightning.api.proto;l=1483
|
LightningApi.Channel.Builder |
clearLocalConstraints()
List constraints for the local node.
|
LightningApi.Channel.Builder |
clearMemo()
An optional note-to-self to go along with the channel containing some
useful information.
|
LightningApi.Channel.Builder |
clearNumUpdates()
The total number of updates conducted within this channel.
|
LightningApi.Channel.Builder |
clearPeerAlias()
The configured alias name of our peer.
|
LightningApi.Channel.Builder |
clearPeerScidAlias()
This is the peer SCID alias.
|
LightningApi.Channel.Builder |
clearPendingHtlcs()
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
clearPrivate()
Whether this channel is advertised to the network or not.
|
LightningApi.Channel.Builder |
clearPushAmountSat()
The amount that the initiator of the channel optionally pushed to the remote
party on channel open.
|
LightningApi.Channel.Builder |
clearRemoteBalance()
The counterparty's current balance in this channel
|
LightningApi.Channel.Builder |
clearRemoteChanReserveSat()
Deprecated.
lnrpc.Channel.remote_chan_reserve_sat is deprecated.
See lightning.api.proto;l=1489
|
LightningApi.Channel.Builder |
clearRemoteConstraints()
List constraints for the remote node.
|
LightningApi.Channel.Builder |
clearRemotePubkey()
The identity pubkey of the remote node
|
LightningApi.Channel.Builder |
clearStaticRemoteKey()
Deprecated.
lnrpc.Channel.static_remote_key is deprecated.
See lightning.api.proto;l=1492
|
LightningApi.Channel.Builder |
clearThawHeight()
This uint32 indicates if this channel is to be considered 'frozen'.
|
LightningApi.Channel.Builder |
clearTotalSatoshisReceived()
The total number of satoshis we've received within this channel.
|
LightningApi.Channel.Builder |
clearTotalSatoshisSent()
The total number of satoshis we've sent within this channel.
|
LightningApi.Channel.Builder |
clearUnsettledBalance()
The unsettled balance in this channel
|
LightningApi.Channel.Builder |
clearUptime()
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].
|
LightningApi.Channel.Builder |
clearZeroConf()
Whether or not this is a zero-conf channel.
|
LightningApi.Channel.Builder |
clearZeroConfConfirmedScid()
This is the confirmed / on-chain zero-conf SCID.
|
boolean |
getActive()
Whether this channel is active or not
|
long |
getAliasScids(int index)
This lists out the set of alias short channel ids that exist for a channel.
|
int |
getAliasScidsCount()
This lists out the set of alias short channel ids that exist for a channel.
|
java.util.List<java.lang.Long> |
getAliasScidsList()
This lists out the set of alias short channel ids that exist for a channel.
|
long |
getCapacity()
The total amount of funds held in this channel
|
long |
getChanId()
The unique channel ID for the channel.
|
java.lang.String |
getChannelPoint()
The outpoint (txid:index) of the funding transaction.
|
com.google.protobuf.ByteString |
getChannelPointBytes()
The outpoint (txid:index) of the funding transaction.
|
java.lang.String |
getChanStatusFlags()
A set of flags showing the current state of the channel.
|
com.google.protobuf.ByteString |
getChanStatusFlagsBytes()
A set of flags showing the current state of the channel.
|
java.lang.String |
getCloseAddress()
Close address is the address that we will enforce payout to on cooperative
close if the channel was opened utilizing option upfront shutdown.
|
com.google.protobuf.ByteString |
getCloseAddressBytes()
Close address is the address that we will enforce payout to on cooperative
close if the channel was opened utilizing option upfront shutdown.
|
long |
getCommitFee()
The amount calculated to be paid in fees for the current set of commitment
transactions.
|
LightningApi.CommitmentType |
getCommitmentType()
The commitment type used by this channel.
|
int |
getCommitmentTypeValue()
The commitment type used by this channel.
|
long |
getCommitWeight()
The weight of the commitment transaction
|
int |
getCsvDelay()
Deprecated.
lnrpc.Channel.csv_delay is deprecated.
See lightning.api.proto;l=1470
|
LightningApi.Channel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
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.
|
boolean |
getInitiator()
True if we were the ones that created the channel.
|
long |
getLifetime()
The number of seconds that the channel has been monitored by the channel
scoring system.
|
long |
getLocalBalance()
This node's current balance in this channel
|
long |
getLocalChanReserveSat()
Deprecated.
lnrpc.Channel.local_chan_reserve_sat is deprecated.
See lightning.api.proto;l=1483
|
LightningApi.ChannelConstraints |
getLocalConstraints()
List constraints for the local node.
|
LightningApi.ChannelConstraints.Builder |
getLocalConstraintsBuilder()
List constraints for the local node.
|
LightningApi.ChannelConstraintsOrBuilder |
getLocalConstraintsOrBuilder()
List constraints for the local node.
|
java.lang.String |
getMemo()
An optional note-to-self to go along with the channel containing some
useful information.
|
com.google.protobuf.ByteString |
getMemoBytes()
An optional note-to-self to go along with the channel containing some
useful information.
|
long |
getNumUpdates()
The total number of updates conducted within this channel.
|
java.lang.String |
getPeerAlias()
The configured alias name of our peer.
|
com.google.protobuf.ByteString |
getPeerAliasBytes()
The configured alias name of our peer.
|
long |
getPeerScidAlias()
This is the peer SCID alias.
|
LightningApi.HTLC |
getPendingHtlcs(int index)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.HTLC.Builder |
getPendingHtlcsBuilder(int index)
The list of active, uncleared HTLCs currently pending within the channel.
|
java.util.List<LightningApi.HTLC.Builder> |
getPendingHtlcsBuilderList()
The list of active, uncleared HTLCs currently pending within the channel.
|
int |
getPendingHtlcsCount()
The list of active, uncleared HTLCs currently pending within the channel.
|
java.util.List<LightningApi.HTLC> |
getPendingHtlcsList()
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.HTLCOrBuilder |
getPendingHtlcsOrBuilder(int index)
The list of active, uncleared HTLCs currently pending within the channel.
|
java.util.List<? extends LightningApi.HTLCOrBuilder> |
getPendingHtlcsOrBuilderList()
The list of active, uncleared HTLCs currently pending within the channel.
|
boolean |
getPrivate()
Whether this channel is advertised to the network or not.
|
long |
getPushAmountSat()
The amount that the initiator of the channel optionally pushed to the remote
party on channel open.
|
long |
getRemoteBalance()
The counterparty's current balance in this channel
|
long |
getRemoteChanReserveSat()
Deprecated.
lnrpc.Channel.remote_chan_reserve_sat is deprecated.
See lightning.api.proto;l=1489
|
LightningApi.ChannelConstraints |
getRemoteConstraints()
List constraints for the remote node.
|
LightningApi.ChannelConstraints.Builder |
getRemoteConstraintsBuilder()
List constraints for the remote node.
|
LightningApi.ChannelConstraintsOrBuilder |
getRemoteConstraintsOrBuilder()
List constraints for the remote node.
|
java.lang.String |
getRemotePubkey()
The identity pubkey of the remote node
|
com.google.protobuf.ByteString |
getRemotePubkeyBytes()
The identity pubkey of the remote node
|
boolean |
getStaticRemoteKey()
Deprecated.
lnrpc.Channel.static_remote_key is deprecated.
See lightning.api.proto;l=1492
|
int |
getThawHeight()
This uint32 indicates if this channel is to be considered 'frozen'.
|
long |
getTotalSatoshisReceived()
The total number of satoshis we've received within this channel.
|
long |
getTotalSatoshisSent()
The total number of satoshis we've sent within this channel.
|
long |
getUnsettledBalance()
The unsettled balance in this channel
|
long |
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].
|
boolean |
getZeroConf()
Whether or not this is a zero-conf channel.
|
long |
getZeroConfConfirmedScid()
This is the confirmed / on-chain zero-conf SCID.
|
boolean |
hasLocalConstraints()
List constraints for the local node.
|
boolean |
hasRemoteConstraints()
List constraints for the remote node.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.Channel.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.Channel.Builder |
mergeFrom(LightningApi.Channel other) |
LightningApi.Channel.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.Channel.Builder |
mergeLocalConstraints(LightningApi.ChannelConstraints value)
List constraints for the local node.
|
LightningApi.Channel.Builder |
mergeRemoteConstraints(LightningApi.ChannelConstraints value)
List constraints for the remote node.
|
LightningApi.Channel.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.Channel.Builder |
removePendingHtlcs(int index)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
setActive(boolean value)
Whether this channel is active or not
|
LightningApi.Channel.Builder |
setAliasScids(int index,
long value)
This lists out the set of alias short channel ids that exist for a channel.
|
LightningApi.Channel.Builder |
setCapacity(long value)
The total amount of funds held in this channel
|
LightningApi.Channel.Builder |
setChanId(long value)
The unique channel ID for the channel.
|
LightningApi.Channel.Builder |
setChannelPoint(java.lang.String value)
The outpoint (txid:index) of the funding transaction.
|
LightningApi.Channel.Builder |
setChannelPointBytes(com.google.protobuf.ByteString value)
The outpoint (txid:index) of the funding transaction.
|
LightningApi.Channel.Builder |
setChanStatusFlags(java.lang.String value)
A set of flags showing the current state of the channel.
|
LightningApi.Channel.Builder |
setChanStatusFlagsBytes(com.google.protobuf.ByteString value)
A set of flags showing the current state of the channel.
|
LightningApi.Channel.Builder |
setCloseAddress(java.lang.String value)
Close address is the address that we will enforce payout to on cooperative
close if the channel was opened utilizing option upfront shutdown.
|
LightningApi.Channel.Builder |
setCloseAddressBytes(com.google.protobuf.ByteString value)
Close address is the address that we will enforce payout to on cooperative
close if the channel was opened utilizing option upfront shutdown.
|
LightningApi.Channel.Builder |
setCommitFee(long value)
The amount calculated to be paid in fees for the current set of commitment
transactions.
|
LightningApi.Channel.Builder |
setCommitmentType(LightningApi.CommitmentType value)
The commitment type used by this channel.
|
LightningApi.Channel.Builder |
setCommitmentTypeValue(int value)
The commitment type used by this channel.
|
LightningApi.Channel.Builder |
setCommitWeight(long value)
The weight of the commitment transaction
|
LightningApi.Channel.Builder |
setCsvDelay(int value)
Deprecated.
lnrpc.Channel.csv_delay is deprecated.
See lightning.api.proto;l=1470
|
LightningApi.Channel.Builder |
setFeePerKw(long value)
The required number of satoshis per kilo-weight that the requester will pay
at all times, for both the funding transaction and commitment transaction.
|
LightningApi.Channel.Builder |
setInitiator(boolean value)
True if we were the ones that created the channel.
|
LightningApi.Channel.Builder |
setLifetime(long value)
The number of seconds that the channel has been monitored by the channel
scoring system.
|
LightningApi.Channel.Builder |
setLocalBalance(long value)
This node's current balance in this channel
|
LightningApi.Channel.Builder |
setLocalChanReserveSat(long value)
Deprecated.
lnrpc.Channel.local_chan_reserve_sat is deprecated.
See lightning.api.proto;l=1483
|
LightningApi.Channel.Builder |
setLocalConstraints(LightningApi.ChannelConstraints.Builder builderForValue)
List constraints for the local node.
|
LightningApi.Channel.Builder |
setLocalConstraints(LightningApi.ChannelConstraints value)
List constraints for the local node.
|
LightningApi.Channel.Builder |
setMemo(java.lang.String value)
An optional note-to-self to go along with the channel containing some
useful information.
|
LightningApi.Channel.Builder |
setMemoBytes(com.google.protobuf.ByteString value)
An optional note-to-self to go along with the channel containing some
useful information.
|
LightningApi.Channel.Builder |
setNumUpdates(long value)
The total number of updates conducted within this channel.
|
LightningApi.Channel.Builder |
setPeerAlias(java.lang.String value)
The configured alias name of our peer.
|
LightningApi.Channel.Builder |
setPeerAliasBytes(com.google.protobuf.ByteString value)
The configured alias name of our peer.
|
LightningApi.Channel.Builder |
setPeerScidAlias(long value)
This is the peer SCID alias.
|
LightningApi.Channel.Builder |
setPendingHtlcs(int index,
LightningApi.HTLC.Builder builderForValue)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
setPendingHtlcs(int index,
LightningApi.HTLC value)
The list of active, uncleared HTLCs currently pending within the channel.
|
LightningApi.Channel.Builder |
setPrivate(boolean value)
Whether this channel is advertised to the network or not.
|
LightningApi.Channel.Builder |
setPushAmountSat(long value)
The amount that the initiator of the channel optionally pushed to the remote
party on channel open.
|
LightningApi.Channel.Builder |
setRemoteBalance(long value)
The counterparty's current balance in this channel
|
LightningApi.Channel.Builder |
setRemoteChanReserveSat(long value)
Deprecated.
lnrpc.Channel.remote_chan_reserve_sat is deprecated.
See lightning.api.proto;l=1489
|
LightningApi.Channel.Builder |
setRemoteConstraints(LightningApi.ChannelConstraints.Builder builderForValue)
List constraints for the remote node.
|
LightningApi.Channel.Builder |
setRemoteConstraints(LightningApi.ChannelConstraints value)
List constraints for the remote node.
|
LightningApi.Channel.Builder |
setRemotePubkey(java.lang.String value)
The identity pubkey of the remote node
|
LightningApi.Channel.Builder |
setRemotePubkeyBytes(com.google.protobuf.ByteString value)
The identity pubkey of the remote node
|
LightningApi.Channel.Builder |
setStaticRemoteKey(boolean value)
Deprecated.
lnrpc.Channel.static_remote_key is deprecated.
See lightning.api.proto;l=1492
|
LightningApi.Channel.Builder |
setThawHeight(int value)
This uint32 indicates if this channel is to be considered 'frozen'.
|
LightningApi.Channel.Builder |
setTotalSatoshisReceived(long value)
The total number of satoshis we've received within this channel.
|
LightningApi.Channel.Builder |
setTotalSatoshisSent(long value)
The total number of satoshis we've sent within this channel.
|
LightningApi.Channel.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.Channel.Builder |
setUnsettledBalance(long value)
The unsettled balance in this channel
|
LightningApi.Channel.Builder |
setUptime(long value)
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].
|
LightningApi.Channel.Builder |
setZeroConf(boolean value)
Whether or not this is a zero-conf channel.
|
LightningApi.Channel.Builder |
setZeroConfConfirmedScid(long value)
This is the confirmed / on-chain zero-conf SCID.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Channel.Builder>
public LightningApi.Channel.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Channel.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Channel.Builder>
public LightningApi.Channel getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.Channel build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.Channel buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.Channel.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.Channel.Builder>
public LightningApi.Channel.Builder mergeFrom(LightningApi.Channel other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Channel.Builder>
public LightningApi.Channel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.Channel.Builder>
java.io.IOException
public boolean getActive()
Whether this channel is active or not
bool active = 1;
getActive
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setActive(boolean value)
Whether this channel is active or not
bool active = 1;
value
- The active to set.public LightningApi.Channel.Builder clearActive()
Whether this channel is active or not
bool active = 1;
public java.lang.String getRemotePubkey()
The identity pubkey of the remote node
string remote_pubkey = 2;
getRemotePubkey
in interface LightningApi.ChannelOrBuilder
public com.google.protobuf.ByteString getRemotePubkeyBytes()
The identity pubkey of the remote node
string remote_pubkey = 2;
getRemotePubkeyBytes
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setRemotePubkey(java.lang.String value)
The identity pubkey of the remote node
string remote_pubkey = 2;
value
- The remotePubkey to set.public LightningApi.Channel.Builder clearRemotePubkey()
The identity pubkey of the remote node
string remote_pubkey = 2;
public LightningApi.Channel.Builder setRemotePubkeyBytes(com.google.protobuf.ByteString value)
The identity pubkey of the remote node
string remote_pubkey = 2;
value
- The bytes for remotePubkey to set.public java.lang.String 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.
string channel_point = 3;
getChannelPoint
in interface LightningApi.ChannelOrBuilder
public com.google.protobuf.ByteString getChannelPointBytes()
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.
string channel_point = 3;
getChannelPointBytes
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setChannelPoint(java.lang.String value)
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.
string channel_point = 3;
value
- The channelPoint to set.public LightningApi.Channel.Builder clearChannelPoint()
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.
string channel_point = 3;
public LightningApi.Channel.Builder setChannelPointBytes(com.google.protobuf.ByteString value)
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.
string channel_point = 3;
value
- The bytes for channelPoint to set.public long 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.
uint64 chan_id = 4 [jstype = JS_STRING];
getChanId
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setChanId(long value)
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.
uint64 chan_id = 4 [jstype = JS_STRING];
value
- The chanId to set.public LightningApi.Channel.Builder clearChanId()
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.
uint64 chan_id = 4 [jstype = JS_STRING];
public long getCapacity()
The total amount of funds held in this channel
int64 capacity = 5;
getCapacity
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setCapacity(long value)
The total amount of funds held in this channel
int64 capacity = 5;
value
- The capacity to set.public LightningApi.Channel.Builder clearCapacity()
The total amount of funds held in this channel
int64 capacity = 5;
public long getLocalBalance()
This node's current balance in this channel
int64 local_balance = 6;
getLocalBalance
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setLocalBalance(long value)
This node's current balance in this channel
int64 local_balance = 6;
value
- The localBalance to set.public LightningApi.Channel.Builder clearLocalBalance()
This node's current balance in this channel
int64 local_balance = 6;
public long getRemoteBalance()
The counterparty's current balance in this channel
int64 remote_balance = 7;
getRemoteBalance
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setRemoteBalance(long value)
The counterparty's current balance in this channel
int64 remote_balance = 7;
value
- The remoteBalance to set.public LightningApi.Channel.Builder clearRemoteBalance()
The counterparty's current balance in this channel
int64 remote_balance = 7;
public long 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.
int64 commit_fee = 8;
getCommitFee
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setCommitFee(long value)
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.
int64 commit_fee = 8;
value
- The commitFee to set.public LightningApi.Channel.Builder clearCommitFee()
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.
int64 commit_fee = 8;
public long getCommitWeight()
The weight of the commitment transaction
int64 commit_weight = 9;
getCommitWeight
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setCommitWeight(long value)
The weight of the commitment transaction
int64 commit_weight = 9;
value
- The commitWeight to set.public LightningApi.Channel.Builder clearCommitWeight()
The weight of the commitment transaction
int64 commit_weight = 9;
public long 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.
int64 fee_per_kw = 10;
getFeePerKw
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setFeePerKw(long value)
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.
int64 fee_per_kw = 10;
value
- The feePerKw to set.public LightningApi.Channel.Builder clearFeePerKw()
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.
int64 fee_per_kw = 10;
public long getUnsettledBalance()
The unsettled balance in this channel
int64 unsettled_balance = 11;
getUnsettledBalance
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setUnsettledBalance(long value)
The unsettled balance in this channel
int64 unsettled_balance = 11;
value
- The unsettledBalance to set.public LightningApi.Channel.Builder clearUnsettledBalance()
The unsettled balance in this channel
int64 unsettled_balance = 11;
public long getTotalSatoshisSent()
The total number of satoshis we've sent within this channel.
int64 total_satoshis_sent = 12;
getTotalSatoshisSent
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setTotalSatoshisSent(long value)
The total number of satoshis we've sent within this channel.
int64 total_satoshis_sent = 12;
value
- The totalSatoshisSent to set.public LightningApi.Channel.Builder clearTotalSatoshisSent()
The total number of satoshis we've sent within this channel.
int64 total_satoshis_sent = 12;
public long getTotalSatoshisReceived()
The total number of satoshis we've received within this channel.
int64 total_satoshis_received = 13;
getTotalSatoshisReceived
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setTotalSatoshisReceived(long value)
The total number of satoshis we've received within this channel.
int64 total_satoshis_received = 13;
value
- The totalSatoshisReceived to set.public LightningApi.Channel.Builder clearTotalSatoshisReceived()
The total number of satoshis we've received within this channel.
int64 total_satoshis_received = 13;
public long getNumUpdates()
The total number of updates conducted within this channel.
uint64 num_updates = 14;
getNumUpdates
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setNumUpdates(long value)
The total number of updates conducted within this channel.
uint64 num_updates = 14;
value
- The numUpdates to set.public LightningApi.Channel.Builder clearNumUpdates()
The total number of updates conducted within this channel.
uint64 num_updates = 14;
public java.util.List<LightningApi.HTLC> getPendingHtlcsList()
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
getPendingHtlcsList
in interface LightningApi.ChannelOrBuilder
public int getPendingHtlcsCount()
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
getPendingHtlcsCount
in interface LightningApi.ChannelOrBuilder
public LightningApi.HTLC getPendingHtlcs(int index)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
getPendingHtlcs
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setPendingHtlcs(int index, LightningApi.HTLC value)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder setPendingHtlcs(int index, LightningApi.HTLC.Builder builderForValue)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder addPendingHtlcs(LightningApi.HTLC value)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder addPendingHtlcs(int index, LightningApi.HTLC value)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder addPendingHtlcs(LightningApi.HTLC.Builder builderForValue)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder addPendingHtlcs(int index, LightningApi.HTLC.Builder builderForValue)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder addAllPendingHtlcs(java.lang.Iterable<? extends LightningApi.HTLC> values)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder clearPendingHtlcs()
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.Channel.Builder removePendingHtlcs(int index)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.HTLC.Builder getPendingHtlcsBuilder(int index)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.HTLCOrBuilder getPendingHtlcsOrBuilder(int index)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
getPendingHtlcsOrBuilder
in interface LightningApi.ChannelOrBuilder
public java.util.List<? extends LightningApi.HTLCOrBuilder> getPendingHtlcsOrBuilderList()
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
getPendingHtlcsOrBuilderList
in interface LightningApi.ChannelOrBuilder
public LightningApi.HTLC.Builder addPendingHtlcsBuilder()
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public LightningApi.HTLC.Builder addPendingHtlcsBuilder(int index)
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
public java.util.List<LightningApi.HTLC.Builder> getPendingHtlcsBuilderList()
The list of active, uncleared HTLCs currently pending within the channel.
repeated .lnrpc.HTLC pending_htlcs = 15;
@Deprecated public int 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.
uint32 csv_delay = 16 [deprecated = true];
getCsvDelay
in interface LightningApi.ChannelOrBuilder
@Deprecated public LightningApi.Channel.Builder setCsvDelay(int value)
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.
uint32 csv_delay = 16 [deprecated = true];
value
- The csvDelay to set.@Deprecated public LightningApi.Channel.Builder clearCsvDelay()
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.
uint32 csv_delay = 16 [deprecated = true];
public boolean getPrivate()
Whether this channel is advertised to the network or not.
bool private = 17;
getPrivate
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setPrivate(boolean value)
Whether this channel is advertised to the network or not.
bool private = 17;
value
- The private to set.public LightningApi.Channel.Builder clearPrivate()
Whether this channel is advertised to the network or not.
bool private = 17;
public boolean getInitiator()
True if we were the ones that created the channel.
bool initiator = 18;
getInitiator
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setInitiator(boolean value)
True if we were the ones that created the channel.
bool initiator = 18;
value
- The initiator to set.public LightningApi.Channel.Builder clearInitiator()
True if we were the ones that created the channel.
bool initiator = 18;
public java.lang.String getChanStatusFlags()
A set of flags showing the current state of the channel.
string chan_status_flags = 19;
getChanStatusFlags
in interface LightningApi.ChannelOrBuilder
public com.google.protobuf.ByteString getChanStatusFlagsBytes()
A set of flags showing the current state of the channel.
string chan_status_flags = 19;
getChanStatusFlagsBytes
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setChanStatusFlags(java.lang.String value)
A set of flags showing the current state of the channel.
string chan_status_flags = 19;
value
- The chanStatusFlags to set.public LightningApi.Channel.Builder clearChanStatusFlags()
A set of flags showing the current state of the channel.
string chan_status_flags = 19;
public LightningApi.Channel.Builder setChanStatusFlagsBytes(com.google.protobuf.ByteString value)
A set of flags showing the current state of the channel.
string chan_status_flags = 19;
value
- The bytes for chanStatusFlags to set.@Deprecated public long getLocalChanReserveSat()
Deprecated. The minimum satoshis this node is required to reserve in its balance.
int64 local_chan_reserve_sat = 20 [deprecated = true];
getLocalChanReserveSat
in interface LightningApi.ChannelOrBuilder
@Deprecated public LightningApi.Channel.Builder setLocalChanReserveSat(long value)
Deprecated. The minimum satoshis this node is required to reserve in its balance.
int64 local_chan_reserve_sat = 20 [deprecated = true];
value
- The localChanReserveSat to set.@Deprecated public LightningApi.Channel.Builder clearLocalChanReserveSat()
Deprecated. The minimum satoshis this node is required to reserve in its balance.
int64 local_chan_reserve_sat = 20 [deprecated = true];
@Deprecated public long getRemoteChanReserveSat()
Deprecated. The minimum satoshis the other node is required to reserve in its balance.
int64 remote_chan_reserve_sat = 21 [deprecated = true];
getRemoteChanReserveSat
in interface LightningApi.ChannelOrBuilder
@Deprecated public LightningApi.Channel.Builder setRemoteChanReserveSat(long value)
Deprecated. The minimum satoshis the other node is required to reserve in its balance.
int64 remote_chan_reserve_sat = 21 [deprecated = true];
value
- The remoteChanReserveSat to set.@Deprecated public LightningApi.Channel.Builder clearRemoteChanReserveSat()
Deprecated. The minimum satoshis the other node is required to reserve in its balance.
int64 remote_chan_reserve_sat = 21 [deprecated = true];
@Deprecated public boolean getStaticRemoteKey()
Deprecated. Use commitment_type.
bool static_remote_key = 22 [deprecated = true];
getStaticRemoteKey
in interface LightningApi.ChannelOrBuilder
@Deprecated public LightningApi.Channel.Builder setStaticRemoteKey(boolean value)
Deprecated. Use commitment_type.
bool static_remote_key = 22 [deprecated = true];
value
- The staticRemoteKey to set.@Deprecated public LightningApi.Channel.Builder clearStaticRemoteKey()
Deprecated. Use commitment_type.
bool static_remote_key = 22 [deprecated = true];
public int getCommitmentTypeValue()
The commitment type used by this channel.
.lnrpc.CommitmentType commitment_type = 26;
getCommitmentTypeValue
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setCommitmentTypeValue(int value)
The commitment type used by this channel.
.lnrpc.CommitmentType commitment_type = 26;
value
- The enum numeric value on the wire for commitmentType to set.public LightningApi.CommitmentType getCommitmentType()
The commitment type used by this channel.
.lnrpc.CommitmentType commitment_type = 26;
getCommitmentType
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setCommitmentType(LightningApi.CommitmentType value)
The commitment type used by this channel.
.lnrpc.CommitmentType commitment_type = 26;
value
- The commitmentType to set.public LightningApi.Channel.Builder clearCommitmentType()
The commitment type used by this channel.
.lnrpc.CommitmentType commitment_type = 26;
public long 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].
int64 lifetime = 23;
getLifetime
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setLifetime(long value)
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].
int64 lifetime = 23;
value
- The lifetime to set.public LightningApi.Channel.Builder clearLifetime()
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].
int64 lifetime = 23;
public long 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].
int64 uptime = 24;
getUptime
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setUptime(long value)
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].
int64 uptime = 24;
value
- The uptime to set.public LightningApi.Channel.Builder clearUptime()
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].
int64 uptime = 24;
public java.lang.String 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.
string close_address = 25;
getCloseAddress
in interface LightningApi.ChannelOrBuilder
public com.google.protobuf.ByteString getCloseAddressBytes()
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.
string close_address = 25;
getCloseAddressBytes
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setCloseAddress(java.lang.String value)
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.
string close_address = 25;
value
- The closeAddress to set.public LightningApi.Channel.Builder clearCloseAddress()
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.
string close_address = 25;
public LightningApi.Channel.Builder setCloseAddressBytes(com.google.protobuf.ByteString value)
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.
string close_address = 25;
value
- The bytes for closeAddress to set.public long 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.
uint64 push_amount_sat = 27;
getPushAmountSat
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setPushAmountSat(long value)
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.
uint64 push_amount_sat = 27;
value
- The pushAmountSat to set.public LightningApi.Channel.Builder clearPushAmountSat()
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.
uint64 push_amount_sat = 27;
public int 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.
uint32 thaw_height = 28;
getThawHeight
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setThawHeight(int value)
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.
uint32 thaw_height = 28;
value
- The thawHeight to set.public LightningApi.Channel.Builder clearThawHeight()
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.
uint32 thaw_height = 28;
public boolean hasLocalConstraints()
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
hasLocalConstraints
in interface LightningApi.ChannelOrBuilder
public LightningApi.ChannelConstraints getLocalConstraints()
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
getLocalConstraints
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setLocalConstraints(LightningApi.ChannelConstraints value)
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
public LightningApi.Channel.Builder setLocalConstraints(LightningApi.ChannelConstraints.Builder builderForValue)
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
public LightningApi.Channel.Builder mergeLocalConstraints(LightningApi.ChannelConstraints value)
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
public LightningApi.Channel.Builder clearLocalConstraints()
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
public LightningApi.ChannelConstraints.Builder getLocalConstraintsBuilder()
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
public LightningApi.ChannelConstraintsOrBuilder getLocalConstraintsOrBuilder()
List constraints for the local node.
.lnrpc.ChannelConstraints local_constraints = 29;
getLocalConstraintsOrBuilder
in interface LightningApi.ChannelOrBuilder
public boolean hasRemoteConstraints()
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
hasRemoteConstraints
in interface LightningApi.ChannelOrBuilder
public LightningApi.ChannelConstraints getRemoteConstraints()
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
getRemoteConstraints
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setRemoteConstraints(LightningApi.ChannelConstraints value)
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
public LightningApi.Channel.Builder setRemoteConstraints(LightningApi.ChannelConstraints.Builder builderForValue)
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
public LightningApi.Channel.Builder mergeRemoteConstraints(LightningApi.ChannelConstraints value)
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
public LightningApi.Channel.Builder clearRemoteConstraints()
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
public LightningApi.ChannelConstraints.Builder getRemoteConstraintsBuilder()
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
public LightningApi.ChannelConstraintsOrBuilder getRemoteConstraintsOrBuilder()
List constraints for the remote node.
.lnrpc.ChannelConstraints remote_constraints = 30;
getRemoteConstraintsOrBuilder
in interface LightningApi.ChannelOrBuilder
public java.util.List<java.lang.Long> getAliasScidsList()
This lists out the set of alias short channel ids that exist for a channel. This may be empty.
repeated uint64 alias_scids = 31;
getAliasScidsList
in interface LightningApi.ChannelOrBuilder
public int getAliasScidsCount()
This lists out the set of alias short channel ids that exist for a channel. This may be empty.
repeated uint64 alias_scids = 31;
getAliasScidsCount
in interface LightningApi.ChannelOrBuilder
public long getAliasScids(int index)
This lists out the set of alias short channel ids that exist for a channel. This may be empty.
repeated uint64 alias_scids = 31;
getAliasScids
in interface LightningApi.ChannelOrBuilder
index
- The index of the element to return.public LightningApi.Channel.Builder setAliasScids(int index, long value)
This lists out the set of alias short channel ids that exist for a channel. This may be empty.
repeated uint64 alias_scids = 31;
index
- The index to set the value at.value
- The aliasScids to set.public LightningApi.Channel.Builder addAliasScids(long value)
This lists out the set of alias short channel ids that exist for a channel. This may be empty.
repeated uint64 alias_scids = 31;
value
- The aliasScids to add.public LightningApi.Channel.Builder addAllAliasScids(java.lang.Iterable<? extends java.lang.Long> values)
This lists out the set of alias short channel ids that exist for a channel. This may be empty.
repeated uint64 alias_scids = 31;
values
- The aliasScids to add.public LightningApi.Channel.Builder clearAliasScids()
This lists out the set of alias short channel ids that exist for a channel. This may be empty.
repeated uint64 alias_scids = 31;
public boolean getZeroConf()
Whether or not this is a zero-conf channel.
bool zero_conf = 32;
getZeroConf
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setZeroConf(boolean value)
Whether or not this is a zero-conf channel.
bool zero_conf = 32;
value
- The zeroConf to set.public LightningApi.Channel.Builder clearZeroConf()
Whether or not this is a zero-conf channel.
bool zero_conf = 32;
public long getZeroConfConfirmedScid()
This is the confirmed / on-chain zero-conf SCID.
uint64 zero_conf_confirmed_scid = 33;
getZeroConfConfirmedScid
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setZeroConfConfirmedScid(long value)
This is the confirmed / on-chain zero-conf SCID.
uint64 zero_conf_confirmed_scid = 33;
value
- The zeroConfConfirmedScid to set.public LightningApi.Channel.Builder clearZeroConfConfirmedScid()
This is the confirmed / on-chain zero-conf SCID.
uint64 zero_conf_confirmed_scid = 33;
public java.lang.String getPeerAlias()
The configured alias name of our peer.
string peer_alias = 34;
getPeerAlias
in interface LightningApi.ChannelOrBuilder
public com.google.protobuf.ByteString getPeerAliasBytes()
The configured alias name of our peer.
string peer_alias = 34;
getPeerAliasBytes
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setPeerAlias(java.lang.String value)
The configured alias name of our peer.
string peer_alias = 34;
value
- The peerAlias to set.public LightningApi.Channel.Builder clearPeerAlias()
The configured alias name of our peer.
string peer_alias = 34;
public LightningApi.Channel.Builder setPeerAliasBytes(com.google.protobuf.ByteString value)
The configured alias name of our peer.
string peer_alias = 34;
value
- The bytes for peerAlias to set.public long getPeerScidAlias()
This is the peer SCID alias.
uint64 peer_scid_alias = 35 [jstype = JS_STRING];
getPeerScidAlias
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setPeerScidAlias(long value)
This is the peer SCID alias.
uint64 peer_scid_alias = 35 [jstype = JS_STRING];
value
- The peerScidAlias to set.public LightningApi.Channel.Builder clearPeerScidAlias()
This is the peer SCID alias.
uint64 peer_scid_alias = 35 [jstype = JS_STRING];
public java.lang.String getMemo()
An optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel's operation.
string memo = 36;
getMemo
in interface LightningApi.ChannelOrBuilder
public com.google.protobuf.ByteString getMemoBytes()
An optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel's operation.
string memo = 36;
getMemoBytes
in interface LightningApi.ChannelOrBuilder
public LightningApi.Channel.Builder setMemo(java.lang.String value)
An optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel's operation.
string memo = 36;
value
- The memo to set.public LightningApi.Channel.Builder clearMemo()
An optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel's operation.
string memo = 36;
public LightningApi.Channel.Builder setMemoBytes(com.google.protobuf.ByteString value)
An optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel's operation.
string memo = 36;
value
- The bytes for memo to set.public final LightningApi.Channel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Channel.Builder>
public final LightningApi.Channel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.Channel.Builder>