public static final class LightningApi.Transaction extends com.google.protobuf.GeneratedMessageV3 implements LightningApi.TransactionOrBuilder
lnrpc.Transaction| Modifier and Type | Class and Description |
|---|---|
static class |
LightningApi.Transaction.Builder
Protobuf type
lnrpc.Transaction |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AMOUNT_FIELD_NUMBER |
static int |
BLOCK_HASH_FIELD_NUMBER |
static int |
BLOCK_HEIGHT_FIELD_NUMBER |
static int |
DEST_ADDRESSES_FIELD_NUMBER |
static int |
LABEL_FIELD_NUMBER |
static int |
NUM_CONFIRMATIONS_FIELD_NUMBER |
static int |
OUTPUT_DETAILS_FIELD_NUMBER |
static int |
PREVIOUS_OUTPOINTS_FIELD_NUMBER |
static int |
RAW_TX_HEX_FIELD_NUMBER |
static int |
TIME_STAMP_FIELD_NUMBER |
static int |
TOTAL_FEES_FIELD_NUMBER |
static int |
TX_HASH_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getAmount()
The transaction amount, denominated in satoshis
|
java.lang.String |
getBlockHash()
The hash of the block this transaction was included in
|
com.google.protobuf.ByteString |
getBlockHashBytes()
The hash of the block this transaction was included in
|
int |
getBlockHeight()
The height of the block this transaction was included in
|
static LightningApi.Transaction |
getDefaultInstance() |
LightningApi.Transaction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getDestAddresses(int index)
Deprecated.
lnrpc.Transaction.dest_addresses is deprecated.
See lightning.api.proto;l=724
|
com.google.protobuf.ByteString |
getDestAddressesBytes(int index)
Deprecated.
lnrpc.Transaction.dest_addresses is deprecated.
See lightning.api.proto;l=724
|
int |
getDestAddressesCount()
Deprecated.
lnrpc.Transaction.dest_addresses is deprecated.
See lightning.api.proto;l=724
|
com.google.protobuf.ProtocolStringList |
getDestAddressesList()
Deprecated.
lnrpc.Transaction.dest_addresses is deprecated.
See lightning.api.proto;l=724
|
java.lang.String |
getLabel()
A label that was optionally set on transaction broadcast.
|
com.google.protobuf.ByteString |
getLabelBytes()
A label that was optionally set on transaction broadcast.
|
int |
getNumConfirmations()
The number of confirmations
|
LightningApi.OutputDetail |
getOutputDetails(int index)
Outputs that received funds for this transaction
|
int |
getOutputDetailsCount()
Outputs that received funds for this transaction
|
java.util.List<LightningApi.OutputDetail> |
getOutputDetailsList()
Outputs that received funds for this transaction
|
LightningApi.OutputDetailOrBuilder |
getOutputDetailsOrBuilder(int index)
Outputs that received funds for this transaction
|
java.util.List<? extends LightningApi.OutputDetailOrBuilder> |
getOutputDetailsOrBuilderList()
Outputs that received funds for this transaction
|
com.google.protobuf.Parser<LightningApi.Transaction> |
getParserForType() |
LightningApi.PreviousOutPoint |
getPreviousOutpoints(int index)
PreviousOutpoints/Inputs of this transaction.
|
int |
getPreviousOutpointsCount()
PreviousOutpoints/Inputs of this transaction.
|
java.util.List<LightningApi.PreviousOutPoint> |
getPreviousOutpointsList()
PreviousOutpoints/Inputs of this transaction.
|
LightningApi.PreviousOutPointOrBuilder |
getPreviousOutpointsOrBuilder(int index)
PreviousOutpoints/Inputs of this transaction.
|
java.util.List<? extends LightningApi.PreviousOutPointOrBuilder> |
getPreviousOutpointsOrBuilderList()
PreviousOutpoints/Inputs of this transaction.
|
java.lang.String |
getRawTxHex()
The raw transaction hex.
|
com.google.protobuf.ByteString |
getRawTxHexBytes()
The raw transaction hex.
|
int |
getSerializedSize() |
long |
getTimeStamp()
Timestamp of this transaction
|
long |
getTotalFees()
Fees paid for this transaction
|
java.lang.String |
getTxHash()
The transaction hash
|
com.google.protobuf.ByteString |
getTxHashBytes()
The transaction hash
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LightningApi.Transaction.Builder |
newBuilder() |
static LightningApi.Transaction.Builder |
newBuilder(LightningApi.Transaction prototype) |
LightningApi.Transaction.Builder |
newBuilderForType() |
protected LightningApi.Transaction.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LightningApi.Transaction |
parseDelimitedFrom(java.io.InputStream input) |
static LightningApi.Transaction |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Transaction |
parseFrom(byte[] data) |
static LightningApi.Transaction |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Transaction |
parseFrom(java.nio.ByteBuffer data) |
static LightningApi.Transaction |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Transaction |
parseFrom(com.google.protobuf.ByteString data) |
static LightningApi.Transaction |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Transaction |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LightningApi.Transaction |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Transaction |
parseFrom(java.io.InputStream input) |
static LightningApi.Transaction |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LightningApi.Transaction> |
parser() |
LightningApi.Transaction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TX_HASH_FIELD_NUMBER
public static final int AMOUNT_FIELD_NUMBER
public static final int NUM_CONFIRMATIONS_FIELD_NUMBER
public static final int BLOCK_HASH_FIELD_NUMBER
public static final int BLOCK_HEIGHT_FIELD_NUMBER
public static final int TIME_STAMP_FIELD_NUMBER
public static final int TOTAL_FEES_FIELD_NUMBER
public static final int DEST_ADDRESSES_FIELD_NUMBER
public static final int OUTPUT_DETAILS_FIELD_NUMBER
public static final int RAW_TX_HEX_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER
public static final int PREVIOUS_OUTPOINTS_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getTxHash()
The transaction hash
string tx_hash = 1;getTxHash in interface LightningApi.TransactionOrBuilderpublic com.google.protobuf.ByteString getTxHashBytes()
The transaction hash
string tx_hash = 1;getTxHashBytes in interface LightningApi.TransactionOrBuilderpublic long getAmount()
The transaction amount, denominated in satoshis
int64 amount = 2;getAmount in interface LightningApi.TransactionOrBuilderpublic int getNumConfirmations()
The number of confirmations
int32 num_confirmations = 3;getNumConfirmations in interface LightningApi.TransactionOrBuilderpublic java.lang.String getBlockHash()
The hash of the block this transaction was included in
string block_hash = 4;getBlockHash in interface LightningApi.TransactionOrBuilderpublic com.google.protobuf.ByteString getBlockHashBytes()
The hash of the block this transaction was included in
string block_hash = 4;getBlockHashBytes in interface LightningApi.TransactionOrBuilderpublic int getBlockHeight()
The height of the block this transaction was included in
int32 block_height = 5;getBlockHeight in interface LightningApi.TransactionOrBuilderpublic long getTimeStamp()
Timestamp of this transaction
int64 time_stamp = 6;getTimeStamp in interface LightningApi.TransactionOrBuilderpublic long getTotalFees()
Fees paid for this transaction
int64 total_fees = 7;getTotalFees in interface LightningApi.TransactionOrBuilder@Deprecated public com.google.protobuf.ProtocolStringList getDestAddressesList()
Addresses that received funds for this transaction. Deprecated as it is now incorporated in the output_details field.
repeated string dest_addresses = 8 [deprecated = true];getDestAddressesList in interface LightningApi.TransactionOrBuilder@Deprecated public int getDestAddressesCount()
Addresses that received funds for this transaction. Deprecated as it is now incorporated in the output_details field.
repeated string dest_addresses = 8 [deprecated = true];getDestAddressesCount in interface LightningApi.TransactionOrBuilder@Deprecated public java.lang.String getDestAddresses(int index)
Addresses that received funds for this transaction. Deprecated as it is now incorporated in the output_details field.
repeated string dest_addresses = 8 [deprecated = true];getDestAddresses in interface LightningApi.TransactionOrBuilderindex - The index of the element to return.@Deprecated public com.google.protobuf.ByteString getDestAddressesBytes(int index)
Addresses that received funds for this transaction. Deprecated as it is now incorporated in the output_details field.
repeated string dest_addresses = 8 [deprecated = true];getDestAddressesBytes in interface LightningApi.TransactionOrBuilderindex - The index of the value to return.public java.util.List<LightningApi.OutputDetail> getOutputDetailsList()
Outputs that received funds for this transaction
repeated .lnrpc.OutputDetail output_details = 11;getOutputDetailsList in interface LightningApi.TransactionOrBuilderpublic java.util.List<? extends LightningApi.OutputDetailOrBuilder> getOutputDetailsOrBuilderList()
Outputs that received funds for this transaction
repeated .lnrpc.OutputDetail output_details = 11;getOutputDetailsOrBuilderList in interface LightningApi.TransactionOrBuilderpublic int getOutputDetailsCount()
Outputs that received funds for this transaction
repeated .lnrpc.OutputDetail output_details = 11;getOutputDetailsCount in interface LightningApi.TransactionOrBuilderpublic LightningApi.OutputDetail getOutputDetails(int index)
Outputs that received funds for this transaction
repeated .lnrpc.OutputDetail output_details = 11;getOutputDetails in interface LightningApi.TransactionOrBuilderpublic LightningApi.OutputDetailOrBuilder getOutputDetailsOrBuilder(int index)
Outputs that received funds for this transaction
repeated .lnrpc.OutputDetail output_details = 11;getOutputDetailsOrBuilder in interface LightningApi.TransactionOrBuilderpublic java.lang.String getRawTxHex()
The raw transaction hex.
string raw_tx_hex = 9;getRawTxHex in interface LightningApi.TransactionOrBuilderpublic com.google.protobuf.ByteString getRawTxHexBytes()
The raw transaction hex.
string raw_tx_hex = 9;getRawTxHexBytes in interface LightningApi.TransactionOrBuilderpublic java.lang.String getLabel()
A label that was optionally set on transaction broadcast.
string label = 10;getLabel in interface LightningApi.TransactionOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
A label that was optionally set on transaction broadcast.
string label = 10;getLabelBytes in interface LightningApi.TransactionOrBuilderpublic java.util.List<LightningApi.PreviousOutPoint> getPreviousOutpointsList()
PreviousOutpoints/Inputs of this transaction.
repeated .lnrpc.PreviousOutPoint previous_outpoints = 12;getPreviousOutpointsList in interface LightningApi.TransactionOrBuilderpublic java.util.List<? extends LightningApi.PreviousOutPointOrBuilder> getPreviousOutpointsOrBuilderList()
PreviousOutpoints/Inputs of this transaction.
repeated .lnrpc.PreviousOutPoint previous_outpoints = 12;getPreviousOutpointsOrBuilderList in interface LightningApi.TransactionOrBuilderpublic int getPreviousOutpointsCount()
PreviousOutpoints/Inputs of this transaction.
repeated .lnrpc.PreviousOutPoint previous_outpoints = 12;getPreviousOutpointsCount in interface LightningApi.TransactionOrBuilderpublic LightningApi.PreviousOutPoint getPreviousOutpoints(int index)
PreviousOutpoints/Inputs of this transaction.
repeated .lnrpc.PreviousOutPoint previous_outpoints = 12;getPreviousOutpoints in interface LightningApi.TransactionOrBuilderpublic LightningApi.PreviousOutPointOrBuilder getPreviousOutpointsOrBuilder(int index)
PreviousOutpoints/Inputs of this transaction.
repeated .lnrpc.PreviousOutPoint previous_outpoints = 12;getPreviousOutpointsOrBuilder in interface LightningApi.TransactionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LightningApi.Transaction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Transaction parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Transaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Transaction parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Transaction parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LightningApi.Transaction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LightningApi.Transaction.Builder newBuilder()
public static LightningApi.Transaction.Builder newBuilder(LightningApi.Transaction prototype)
public LightningApi.Transaction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LightningApi.Transaction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LightningApi.Transaction getDefaultInstance()
public static com.google.protobuf.Parser<LightningApi.Transaction> parser()
public com.google.protobuf.Parser<LightningApi.Transaction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LightningApi.Transaction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder