Package net.osslabz.lnd.dto
Class LnrpcOpenChannelRequest
java.lang.Object
net.osslabz.lnd.dto.LnrpcOpenChannelRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcOpenChannelRequest
extends Object
LnrpcOpenChannelRequest
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloseAddress(String closeAddress) commitmentType(LnrpcCommitmentType commitmentType) booleanfundingShim(LnrpcFundingShim fundingShim) The base fee charged regardless of the number of milli-satoshis sent.Close address is an optional address which specifies the address to which funds should be paid out to upon cooperative close.Get commitmentTypeThe fee rate in ppm (parts per million) that will be charged in proportion of the value of each forwarded HTLC.Get fundingShimGet localFundingAmountMax local csv is the maximum csv delay we will allow for our own commitment transaction.The minimum number of confirmations each one of your outputs used for the funding transaction must satisfy.The minimum value in millisatoshi we will require for incoming HTLCs on the channel.byte[]The pubkey of the node to open a channel with.The hex encoded pubkey of the node to open a channel with.Whether this channel should be private, not announced to the greater network.Get pushSatThe number of satoshis we require the remote peer to reserve.The delay we require on the remote's commitment transaction.The maximum number of concurrent HTLCs we will allow the remote party to add to the commitment transaction.The maximum amount of coins in millisatoshi that can be pending within the channel.Deprecated, use sat_per_vbyte.A manual fee rate set in sat/vbyte that should be used when crafting the funding transaction.If this is true, then an option-scid-alias channel-type open will be attempted.Whether unconfirmed outputs should be used as inputs for the funding transaction.The target number of blocks that the funding transaction should be confirmed by.If use_base_fee is true the open channel announcement will update the channel base fee with the value specified in base_fee.If use_fee_rate is true the open channel announcement will update the channel fee rate with the value specified in fee_rate.If this is true, then a zero-conf channel open will be attempted.inthashCode()localFundingAmount(String localFundingAmount) maxLocalCsv(Long maxLocalCsv) minHtlcMsat(String minHtlcMsat) nodePubkey(byte[] nodePubkey) nodePubkeyString(String nodePubkeyString) remoteChanReserveSat(String remoteChanReserveSat) remoteCsvDelay(Long remoteCsvDelay) remoteMaxHtlcs(Long remoteMaxHtlcs) remoteMaxValueInFlightMsat(String remoteMaxValueInFlightMsat) satPerByte(String satPerByte) satPerVbyte(String satPerVbyte) voidsetBaseFee(String baseFee) voidsetCloseAddress(String closeAddress) voidsetCommitmentType(LnrpcCommitmentType commitmentType) voidsetFeeRate(String feeRate) voidsetFundingShim(LnrpcFundingShim fundingShim) voidsetLocalFundingAmount(String localFundingAmount) voidsetMaxLocalCsv(Long maxLocalCsv) voidsetMinConfs(Integer minConfs) voidsetMinHtlcMsat(String minHtlcMsat) voidsetNodePubkey(byte[] nodePubkey) voidsetNodePubkeyString(String nodePubkeyString) voidsetPrivate(Boolean _private) voidsetPushSat(String pushSat) voidsetRemoteChanReserveSat(String remoteChanReserveSat) voidsetRemoteCsvDelay(Long remoteCsvDelay) voidsetRemoteMaxHtlcs(Long remoteMaxHtlcs) voidsetRemoteMaxValueInFlightMsat(String remoteMaxValueInFlightMsat) voidsetSatPerByte(String satPerByte) voidsetSatPerVbyte(String satPerVbyte) voidsetScidAlias(Boolean scidAlias) voidsetSpendUnconfirmed(Boolean spendUnconfirmed) voidsetTargetConf(Integer targetConf) voidsetUseBaseFee(Boolean useBaseFee) voidsetUseFeeRate(Boolean useFeeRate) voidsetZeroConf(Boolean zeroConf) spendUnconfirmed(Boolean spendUnconfirmed) targetConf(Integer targetConf) toString()useBaseFee(Boolean useBaseFee) useFeeRate(Boolean useFeeRate)
-
Field Details
-
SERIALIZED_NAME_SAT_PER_VBYTE
- See Also:
-
SERIALIZED_NAME_NODE_PUBKEY
- See Also:
-
SERIALIZED_NAME_NODE_PUBKEY_STRING
- See Also:
-
SERIALIZED_NAME_LOCAL_FUNDING_AMOUNT
- See Also:
-
SERIALIZED_NAME_PUSH_SAT
- See Also:
-
SERIALIZED_NAME_TARGET_CONF
- See Also:
-
SERIALIZED_NAME_SAT_PER_BYTE
- See Also:
-
SERIALIZED_NAME_PRIVATE
- See Also:
-
SERIALIZED_NAME_MIN_HTLC_MSAT
- See Also:
-
SERIALIZED_NAME_REMOTE_CSV_DELAY
- See Also:
-
SERIALIZED_NAME_MIN_CONFS
- See Also:
-
SERIALIZED_NAME_SPEND_UNCONFIRMED
- See Also:
-
SERIALIZED_NAME_CLOSE_ADDRESS
- See Also:
-
SERIALIZED_NAME_FUNDING_SHIM
- See Also:
-
SERIALIZED_NAME_REMOTE_MAX_VALUE_IN_FLIGHT_MSAT
- See Also:
-
SERIALIZED_NAME_REMOTE_MAX_HTLCS
- See Also:
-
SERIALIZED_NAME_MAX_LOCAL_CSV
- See Also:
-
SERIALIZED_NAME_COMMITMENT_TYPE
- See Also:
-
SERIALIZED_NAME_ZERO_CONF
- See Also:
-
SERIALIZED_NAME_SCID_ALIAS
- See Also:
-
SERIALIZED_NAME_BASE_FEE
- See Also:
-
SERIALIZED_NAME_FEE_RATE
- See Also:
-
SERIALIZED_NAME_USE_BASE_FEE
- See Also:
-
SERIALIZED_NAME_USE_FEE_RATE
- See Also:
-
SERIALIZED_NAME_REMOTE_CHAN_RESERVE_SAT
- See Also:
-
-
Constructor Details
-
LnrpcOpenChannelRequest
public LnrpcOpenChannelRequest()
-
-
Method Details
-
satPerVbyte
-
getSatPerVbyte
A manual fee rate set in sat/vbyte that should be used when crafting the funding transaction.- Returns:
- satPerVbyte
-
setSatPerVbyte
-
nodePubkey
-
getNodePubkey
@Nullable public byte[] getNodePubkey()The pubkey of the node to open a channel with. When using REST, this field must be encoded as base64.- Returns:
- nodePubkey
-
setNodePubkey
public void setNodePubkey(byte[] nodePubkey) -
nodePubkeyString
-
getNodePubkeyString
The hex encoded pubkey of the node to open a channel with. Deprecated now that the REST gateway supports base64 encoding of bytes fields.- Returns:
- nodePubkeyString
-
setNodePubkeyString
-
localFundingAmount
-
getLocalFundingAmount
Get localFundingAmount- Returns:
- localFundingAmount
-
setLocalFundingAmount
-
pushSat
-
getPushSat
Get pushSat- Returns:
- pushSat
-
setPushSat
-
targetConf
-
getTargetConf
The target number of blocks that the funding transaction should be confirmed by.- Returns:
- targetConf
-
setTargetConf
-
satPerByte
-
getSatPerByte
Deprecated, use sat_per_vbyte. A manual fee rate set in sat/vbyte that should be used when crafting the funding transaction.- Returns:
- satPerByte
-
setSatPerByte
-
_private
-
getPrivate
Whether this channel should be private, not announced to the greater network.- Returns:
- _private
-
setPrivate
-
minHtlcMsat
-
getMinHtlcMsat
The minimum value in millisatoshi we will require for incoming HTLCs on the channel.- Returns:
- minHtlcMsat
-
setMinHtlcMsat
-
remoteCsvDelay
-
getRemoteCsvDelay
The delay we require on the remote's commitment transaction. If this is not set, it will be scaled automatically with the channel size.- Returns:
- remoteCsvDelay
-
setRemoteCsvDelay
-
minConfs
-
getMinConfs
The minimum number of confirmations each one of your outputs used for the funding transaction must satisfy.- Returns:
- minConfs
-
setMinConfs
-
spendUnconfirmed
-
getSpendUnconfirmed
Whether unconfirmed outputs should be used as inputs for the funding transaction.- Returns:
- spendUnconfirmed
-
setSpendUnconfirmed
-
closeAddress
-
getCloseAddress
Close address is an optional address which specifies the address to which funds should be paid out to upon cooperative close. This field may only be set if the peer supports the option upfront feature bit (call listpeers to check). The remote peer will only accept cooperative closes to this address if it is set. Note: If this value is set on channel creation, you will *not* be able to cooperatively close out to a different address.- Returns:
- closeAddress
-
setCloseAddress
-
fundingShim
-
getFundingShim
Get fundingShim- Returns:
- fundingShim
-
setFundingShim
-
remoteMaxValueInFlightMsat
-
getRemoteMaxValueInFlightMsat
The maximum amount of coins in millisatoshi that can be pending within the channel. It only applies to the remote party.- Returns:
- remoteMaxValueInFlightMsat
-
setRemoteMaxValueInFlightMsat
-
remoteMaxHtlcs
-
getRemoteMaxHtlcs
The maximum number of concurrent HTLCs we will allow the remote party to add to the commitment transaction.- Returns:
- remoteMaxHtlcs
-
setRemoteMaxHtlcs
-
maxLocalCsv
-
getMaxLocalCsv
Max local csv is the maximum csv delay we will allow for our own commitment transaction.- Returns:
- maxLocalCsv
-
setMaxLocalCsv
-
commitmentType
-
getCommitmentType
Get commitmentType- Returns:
- commitmentType
-
setCommitmentType
-
zeroConf
-
getZeroConf
If this is true, then a zero-conf channel open will be attempted.- Returns:
- zeroConf
-
setZeroConf
-
scidAlias
-
getScidAlias
If this is true, then an option-scid-alias channel-type open will be attempted.- Returns:
- scidAlias
-
setScidAlias
-
baseFee
-
getBaseFee
The base fee charged regardless of the number of milli-satoshis sent.- Returns:
- baseFee
-
setBaseFee
-
feeRate
-
getFeeRate
The fee rate in ppm (parts per million) that will be charged in proportion of the value of each forwarded HTLC.- Returns:
- feeRate
-
setFeeRate
-
useBaseFee
-
getUseBaseFee
If use_base_fee is true the open channel announcement will update the channel base fee with the value specified in base_fee. In the case of a base_fee of 0 use_base_fee is needed downstream to distinguish whether to use the default base fee value specified in the config or 0.- Returns:
- useBaseFee
-
setUseBaseFee
-
useFeeRate
-
getUseFeeRate
If use_fee_rate is true the open channel announcement will update the channel fee rate with the value specified in fee_rate. In the case of a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether to use the default fee rate value specified in the config or 0.- Returns:
- useFeeRate
-
setUseFeeRate
-
remoteChanReserveSat
-
getRemoteChanReserveSat
The number of satoshis we require the remote peer to reserve. This value, if specified, must be above the dust limit and below 20% of the channel capacity.- Returns:
- remoteChanReserveSat
-
setRemoteChanReserveSat
-
equals
-
hashCode
public int hashCode() -
toString
-