Package net.osslabz.lnd.dto
Class LnrpcSendRequest
java.lang.Object
net.osslabz.lnd.dto.LnrpcSendRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcSendRequest
extends Object
LnrpcSendRequest
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDestFeaturesItem(LnrpcFeatureBit destFeaturesItem) allowSelfPayment(Boolean allowSelfPayment) dest(byte[] dest) destCustomRecords(Map<String, byte[]> destCustomRecords) destFeatures(List<LnrpcFeatureBit> destFeatures) destString(String destString) booleanfeeLimit(LnrpcFeeLimit feeLimit) finalCltvDelta(Integer finalCltvDelta) If set, circular payments to self are permitted.getAmt()The amount to send expressed in satoshis.The amount to send expressed in millisatoshis.An optional maximum total time lock for the route.byte[]getDest()The identity pubkey of the payment recipient.An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records.Features assumed to be supported by the final node.The hex-encoded identity pubkey of the payment recipient.Get feeLimitThe CLTV delta from the current height that should be used to set the timelock for the final hop.byte[]The pubkey of the last hop of the route.The channel id of the channel that must be taken to the first hop.byte[]The payment address of the generated invoice.byte[]The hash to use within the payment's HTLC.The hex-encoded hash to use within the payment's HTLC.A bare-bones invoice for a payment within the Lightning Network.inthashCode()lastHopPubkey(byte[] lastHopPubkey) outgoingChanId(String outgoingChanId) paymentAddr(byte[] paymentAddr) paymentHash(byte[] paymentHash) paymentHashString(String paymentHashString) paymentRequest(String paymentRequest) putDestCustomRecordsItem(String key, byte[] destCustomRecordsItem) voidsetAllowSelfPayment(Boolean allowSelfPayment) voidvoidsetAmtMsat(String amtMsat) voidsetCltvLimit(Long cltvLimit) voidsetDest(byte[] dest) voidsetDestCustomRecords(Map<String, byte[]> destCustomRecords) voidsetDestFeatures(List<LnrpcFeatureBit> destFeatures) voidsetDestString(String destString) voidsetFeeLimit(LnrpcFeeLimit feeLimit) voidsetFinalCltvDelta(Integer finalCltvDelta) voidsetLastHopPubkey(byte[] lastHopPubkey) voidsetOutgoingChanId(String outgoingChanId) voidsetPaymentAddr(byte[] paymentAddr) voidsetPaymentHash(byte[] paymentHash) voidsetPaymentHashString(String paymentHashString) voidsetPaymentRequest(String paymentRequest) toString()
-
Field Details
-
SERIALIZED_NAME_DEST
- See Also:
-
SERIALIZED_NAME_DEST_STRING
- See Also:
-
SERIALIZED_NAME_AMT
- See Also:
-
SERIALIZED_NAME_AMT_MSAT
- See Also:
-
SERIALIZED_NAME_PAYMENT_HASH
- See Also:
-
SERIALIZED_NAME_PAYMENT_HASH_STRING
- See Also:
-
SERIALIZED_NAME_PAYMENT_REQUEST
- See Also:
-
SERIALIZED_NAME_FINAL_CLTV_DELTA
- See Also:
-
SERIALIZED_NAME_FEE_LIMIT
- See Also:
-
SERIALIZED_NAME_OUTGOING_CHAN_ID
- See Also:
-
SERIALIZED_NAME_LAST_HOP_PUBKEY
- See Also:
-
SERIALIZED_NAME_CLTV_LIMIT
- See Also:
-
SERIALIZED_NAME_DEST_CUSTOM_RECORDS
- See Also:
-
SERIALIZED_NAME_ALLOW_SELF_PAYMENT
- See Also:
-
SERIALIZED_NAME_DEST_FEATURES
- See Also:
-
SERIALIZED_NAME_PAYMENT_ADDR
- See Also:
-
-
Constructor Details
-
LnrpcSendRequest
public LnrpcSendRequest()
-
-
Method Details
-
dest
-
getDest
@Nullable public byte[] getDest()The identity pubkey of the payment recipient. When using REST, this field must be encoded as base64.- Returns:
- dest
-
setDest
public void setDest(byte[] dest) -
destString
-
getDestString
The hex-encoded identity pubkey of the payment recipient. Deprecated now that the REST gateway supports base64 encoding of bytes fields.- Returns:
- destString
-
setDestString
-
amt
-
getAmt
The amount to send expressed in satoshis. The fields amt and amt_msat are mutually exclusive.- Returns:
- amt
-
setAmt
-
amtMsat
-
getAmtMsat
The amount to send expressed in millisatoshis. The fields amt and amt_msat are mutually exclusive.- Returns:
- amtMsat
-
setAmtMsat
-
paymentHash
-
getPaymentHash
@Nullable public byte[] getPaymentHash()The hash to use within the payment's HTLC. When using REST, this field must be encoded as base64.- Returns:
- paymentHash
-
setPaymentHash
public void setPaymentHash(byte[] paymentHash) -
paymentHashString
-
getPaymentHashString
The hex-encoded hash to use within the payment's HTLC. Deprecated now that the REST gateway supports base64 encoding of bytes fields.- Returns:
- paymentHashString
-
setPaymentHashString
-
paymentRequest
-
getPaymentRequest
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient.- Returns:
- paymentRequest
-
setPaymentRequest
-
finalCltvDelta
-
getFinalCltvDelta
The CLTV delta from the current height that should be used to set the timelock for the final hop.- Returns:
- finalCltvDelta
-
setFinalCltvDelta
-
feeLimit
-
getFeeLimit
Get feeLimit- Returns:
- feeLimit
-
setFeeLimit
-
outgoingChanId
-
getOutgoingChanId
The channel id of the channel that must be taken to the first hop. If zero, any channel may be used.- Returns:
- outgoingChanId
-
setOutgoingChanId
-
lastHopPubkey
-
getLastHopPubkey
@Nullable public byte[] getLastHopPubkey()The pubkey of the last hop of the route. If empty, any hop may be used.- Returns:
- lastHopPubkey
-
setLastHopPubkey
public void setLastHopPubkey(byte[] lastHopPubkey) -
cltvLimit
-
getCltvLimit
An optional maximum total time lock for the route. This should not exceed lnd's `--max-cltv-expiry` setting. If zero, then the value of `--max-cltv-expiry` is enforced.- Returns:
- cltvLimit
-
setCltvLimit
-
destCustomRecords
-
putDestCustomRecordsItem
-
getDestCustomRecords
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.- Returns:
- destCustomRecords
-
setDestCustomRecords
-
allowSelfPayment
-
getAllowSelfPayment
If set, circular payments to self are permitted.- Returns:
- allowSelfPayment
-
setAllowSelfPayment
-
destFeatures
-
addDestFeaturesItem
-
getDestFeatures
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.- Returns:
- destFeatures
-
setDestFeatures
-
paymentAddr
-
getPaymentAddr
@Nullable public byte[] getPaymentAddr()The payment address of the generated invoice.- Returns:
- paymentAddr
-
setPaymentAddr
public void setPaymentAddr(byte[] paymentAddr) -
equals
-
hashCode
public int hashCode() -
toString
-