Package net.osslabz.lnd.dto
Class LnrpcChannelAcceptResponse
java.lang.Object
net.osslabz.lnd.dto.LnrpcChannelAcceptResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcChannelAcceptResponse
extends Object
LnrpcChannelAcceptResponse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether or not the client accepts the channel.The csv delay (in blocks) that we require for the remote party.getError()An optional error to send the initiating party to indicate why the channel was rejected.The maximum amount of funds in millisatoshis that we allow the remote peer to have in outstanding htlcs.The maximum number of htlcs that the remote peer can offer us.The number of confirmations we require before we consider the channel open.The minimum value in millisatoshis for incoming htlcs on the channel.byte[]The pending channel id to which this response applies.The reserve amount in satoshis that we require the remote peer to adhere to.The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported).Whether the responder wants this to be a zero-conf channel.inthashCode()inFlightMaxMsat(String inFlightMaxMsat) maxHtlcCount(Long maxHtlcCount) minAcceptDepth(Long minAcceptDepth) pendingChanId(byte[] pendingChanId) reserveSat(String reserveSat) voidvoidsetCsvDelay(Long csvDelay) voidvoidsetInFlightMaxMsat(String inFlightMaxMsat) voidsetMaxHtlcCount(Long maxHtlcCount) voidsetMinAcceptDepth(Long minAcceptDepth) voidsetMinHtlcIn(String minHtlcIn) voidsetPendingChanId(byte[] pendingChanId) voidsetReserveSat(String reserveSat) voidsetUpfrontShutdown(String upfrontShutdown) voidsetZeroConf(Boolean zeroConf) toString()upfrontShutdown(String upfrontShutdown)
-
Field Details
-
SERIALIZED_NAME_ACCEPT
- See Also:
-
SERIALIZED_NAME_PENDING_CHAN_ID
- See Also:
-
SERIALIZED_NAME_ERROR
- See Also:
-
SERIALIZED_NAME_UPFRONT_SHUTDOWN
- See Also:
-
SERIALIZED_NAME_CSV_DELAY
- See Also:
-
SERIALIZED_NAME_RESERVE_SAT
- See Also:
-
SERIALIZED_NAME_IN_FLIGHT_MAX_MSAT
- See Also:
-
SERIALIZED_NAME_MAX_HTLC_COUNT
- See Also:
-
SERIALIZED_NAME_MIN_HTLC_IN
- See Also:
-
SERIALIZED_NAME_MIN_ACCEPT_DEPTH
- See Also:
-
SERIALIZED_NAME_ZERO_CONF
- See Also:
-
-
Constructor Details
-
LnrpcChannelAcceptResponse
public LnrpcChannelAcceptResponse()
-
-
Method Details
-
accept
-
getAccept
Whether or not the client accepts the channel.- Returns:
- accept
-
setAccept
-
pendingChanId
-
getPendingChanId
@Nullable public byte[] getPendingChanId()The pending channel id to which this response applies.- Returns:
- pendingChanId
-
setPendingChanId
public void setPendingChanId(byte[] pendingChanId) -
error
-
getError
An optional error to send the initiating party to indicate why the channel was rejected. This field *should not* contain sensitive information, it will be sent to the initiating party. This field should only be set if accept is false, the channel will be rejected if an error is set with accept=true because the meaning of this response is ambiguous. Limited to 500 characters.- Returns:
- error
-
setError
-
upfrontShutdown
-
getUpfrontShutdown
The upfront shutdown address to use if the initiating peer supports option upfront shutdown script (see ListPeers for the features supported). Note that the channel open will fail if this value is set for a peer that does not support this feature bit.- Returns:
- upfrontShutdown
-
setUpfrontShutdown
-
csvDelay
-
getCsvDelay
The csv delay (in blocks) that we require for the remote party.- Returns:
- csvDelay
-
setCsvDelay
-
reserveSat
-
getReserveSat
The reserve amount in satoshis that we require the remote peer to adhere to. We require that the remote peer always have some reserve amount allocated to them so that there is always a disincentive to broadcast old state (if they hold 0 sats on their side of the channel, there is nothing to lose).- Returns:
- reserveSat
-
setReserveSat
-
inFlightMaxMsat
-
getInFlightMaxMsat
The maximum amount of funds in millisatoshis that we allow the remote peer to have in outstanding htlcs.- Returns:
- inFlightMaxMsat
-
setInFlightMaxMsat
-
maxHtlcCount
-
getMaxHtlcCount
The maximum number of htlcs that the remote peer can offer us.- Returns:
- maxHtlcCount
-
setMaxHtlcCount
-
minHtlcIn
-
getMinHtlcIn
The minimum value in millisatoshis for incoming htlcs on the channel.- Returns:
- minHtlcIn
-
setMinHtlcIn
-
minAcceptDepth
-
getMinAcceptDepth
The number of confirmations we require before we consider the channel open.- Returns:
- minAcceptDepth
-
setMinAcceptDepth
-
zeroConf
-
getZeroConf
Whether the responder wants this to be a zero-conf channel. This will fail if either side does not have the scid-alias feature bit set. The minimum depth field must be zero if this is true.- Returns:
- zeroConf
-
setZeroConf
-
equals
-
hashCode
public int hashCode() -
toString
-