public static final class Protos.Transaction extends com.google.protobuf.GeneratedMessageV3 implements Protos.TransactionOrBuilder
wallet.Transaction| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.Transaction.Builder
Protobuf type
wallet.Transaction |
static class |
Protos.Transaction.Pool
This is a bitfield oriented enum, with the following bits:
bit 0 - spent
bit 1 - appears in alt chain
bit 2 - appears in best chain
bit 3 - double-spent
bit 4 - pending (we would like the tx to go into the best chain)
Not all combinations are interesting, just the ones actually used in the enum.
|
static class |
Protos.Transaction.Purpose
For what purpose the transaction was created.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_HASH_FIELD_NUMBER |
static int |
BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER |
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
EXCHANGE_RATE_FIELD_NUMBER |
static int |
HASH_FIELD_NUMBER |
static int |
LOCK_TIME_FIELD_NUMBER |
static int |
MEMO_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.Transaction> |
PARSER
Deprecated.
|
static int |
POOL_FIELD_NUMBER |
static int |
PURPOSE_FIELD_NUMBER |
static int |
TRANSACTION_INPUT_FIELD_NUMBER |
static int |
TRANSACTION_OUTPUT_FIELD_NUMBER |
static int |
UPDATED_AT_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
com.google.protobuf.ByteString |
getBlockHash(int index)
A list of blocks in which the transaction has been observed (on any chain).
|
int |
getBlockHashCount()
A list of blocks in which the transaction has been observed (on any chain).
|
java.util.List<com.google.protobuf.ByteString> |
getBlockHashList()
A list of blocks in which the transaction has been observed (on any chain).
|
int |
getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11; |
int |
getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11; |
java.util.List<java.lang.Integer> |
getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11; |
Protos.TransactionConfidence |
getConfidence()
Data describing where the transaction is in the chain.
|
Protos.TransactionConfidenceOrBuilder |
getConfidenceOrBuilder()
Data describing where the transaction is in the chain.
|
static Protos.Transaction |
getDefaultInstance() |
Protos.Transaction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.ExchangeRate |
getExchangeRate()
Exchange rate that was valid when the transaction was sent.
|
Protos.ExchangeRateOrBuilder |
getExchangeRateOrBuilder()
Exchange rate that was valid when the transaction was sent.
|
com.google.protobuf.ByteString |
getHash()
required bytes hash = 2; |
int |
getLockTime()
The nLockTime field is useful for contracts.
|
java.lang.String |
getMemo()
Memo of the transaction.
|
com.google.protobuf.ByteString |
getMemoBytes()
Memo of the transaction.
|
com.google.protobuf.Parser<Protos.Transaction> |
getParserForType() |
Protos.Transaction.Pool |
getPool()
If pool is not present, that means either:
- This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
- Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
|
Protos.Transaction.Purpose |
getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN]; |
int |
getSerializedSize() |
Protos.TransactionInput |
getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6; |
int |
getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6; |
java.util.List<Protos.TransactionInput> |
getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6; |
Protos.TransactionInputOrBuilder |
getTransactionInputOrBuilder(int index)
repeated .wallet.TransactionInput transaction_input = 6; |
java.util.List<? extends Protos.TransactionInputOrBuilder> |
getTransactionInputOrBuilderList()
repeated .wallet.TransactionInput transaction_input = 6; |
Protos.TransactionOutput |
getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7; |
int |
getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7; |
java.util.List<Protos.TransactionOutput> |
getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7; |
Protos.TransactionOutputOrBuilder |
getTransactionOutputOrBuilder(int index)
repeated .wallet.TransactionOutput transaction_output = 7; |
java.util.List<? extends Protos.TransactionOutputOrBuilder> |
getTransactionOutputOrBuilderList()
repeated .wallet.TransactionOutput transaction_output = 7; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
long |
getUpdatedAt()
millis since epoch the transaction was last updated
|
int |
getVersion()
See Wallet.java for detailed description of pool semantics
|
boolean |
hasConfidence()
Data describing where the transaction is in the chain.
|
boolean |
hasExchangeRate()
Exchange rate that was valid when the transaction was sent.
|
boolean |
hasHash()
required bytes hash = 2; |
int |
hashCode() |
boolean |
hasLockTime()
The nLockTime field is useful for contracts.
|
boolean |
hasMemo()
Memo of the transaction.
|
boolean |
hasPool()
If pool is not present, that means either:
- This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
- Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
|
boolean |
hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN]; |
boolean |
hasUpdatedAt()
millis since epoch the transaction was last updated
|
boolean |
hasVersion()
See Wallet.java for detailed description of pool semantics
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Transaction.Builder |
newBuilder() |
static Protos.Transaction.Builder |
newBuilder(Protos.Transaction prototype) |
Protos.Transaction.Builder |
newBuilderForType() |
protected Protos.Transaction.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Transaction |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Transaction |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Transaction |
parseFrom(byte[] data) |
static Protos.Transaction |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Transaction |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Transaction |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Transaction |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Transaction |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Transaction |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Transaction |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Transaction |
parseFrom(java.io.InputStream input) |
static Protos.Transaction |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protos.Transaction> |
parser() |
Protos.Transaction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 VERSION_FIELD_NUMBER
public static final int HASH_FIELD_NUMBER
public static final int POOL_FIELD_NUMBER
public static final int LOCK_TIME_FIELD_NUMBER
public static final int UPDATED_AT_FIELD_NUMBER
public static final int TRANSACTION_INPUT_FIELD_NUMBER
public static final int TRANSACTION_OUTPUT_FIELD_NUMBER
public static final int BLOCK_HASH_FIELD_NUMBER
public static final int BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
public static final int PURPOSE_FIELD_NUMBER
public static final int EXCHANGE_RATE_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Protos.Transaction> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields 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 boolean hasVersion()
See Wallet.java for detailed description of pool semantics
required int32 version = 1;hasVersion in interface Protos.TransactionOrBuilderpublic int getVersion()
See Wallet.java for detailed description of pool semantics
required int32 version = 1;getVersion in interface Protos.TransactionOrBuilderpublic boolean hasHash()
required bytes hash = 2;hasHash in interface Protos.TransactionOrBuilderpublic com.google.protobuf.ByteString getHash()
required bytes hash = 2;getHash in interface Protos.TransactionOrBuilderpublic boolean hasPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;hasPool in interface Protos.TransactionOrBuilderpublic Protos.Transaction.Pool getPool()
If pool is not present, that means either: - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. - Or the Pool enum got a new value which your software is too old to parse.
optional .wallet.Transaction.Pool pool = 3;getPool in interface Protos.TransactionOrBuilderpublic boolean hasLockTime()
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;hasLockTime in interface Protos.TransactionOrBuilderpublic int getLockTime()
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;getLockTime in interface Protos.TransactionOrBuilderpublic boolean hasUpdatedAt()
millis since epoch the transaction was last updated
optional int64 updated_at = 5;hasUpdatedAt in interface Protos.TransactionOrBuilderpublic long getUpdatedAt()
millis since epoch the transaction was last updated
optional int64 updated_at = 5;getUpdatedAt in interface Protos.TransactionOrBuilderpublic java.util.List<Protos.TransactionInput> getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputList in interface Protos.TransactionOrBuilderpublic java.util.List<? extends Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList()
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputOrBuilderList in interface Protos.TransactionOrBuilderpublic int getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputCount in interface Protos.TransactionOrBuilderpublic Protos.TransactionInput getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInput in interface Protos.TransactionOrBuilderpublic Protos.TransactionInputOrBuilder getTransactionInputOrBuilder(int index)
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputOrBuilder in interface Protos.TransactionOrBuilderpublic java.util.List<Protos.TransactionOutput> getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputList in interface Protos.TransactionOrBuilderpublic java.util.List<? extends Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList()
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputOrBuilderList in interface Protos.TransactionOrBuilderpublic int getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputCount in interface Protos.TransactionOrBuilderpublic Protos.TransactionOutput getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutput in interface Protos.TransactionOrBuilderpublic Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder(int index)
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputOrBuilder in interface Protos.TransactionOrBuilderpublic java.util.List<com.google.protobuf.ByteString> getBlockHashList()
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;getBlockHashList in interface Protos.TransactionOrBuilderpublic int getBlockHashCount()
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;getBlockHashCount in interface Protos.TransactionOrBuilderpublic com.google.protobuf.ByteString getBlockHash(int index)
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;getBlockHash in interface Protos.TransactionOrBuilderpublic java.util.List<java.lang.Integer> getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11;getBlockRelativityOffsetsList in interface Protos.TransactionOrBuilderpublic int getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11;getBlockRelativityOffsetsCount in interface Protos.TransactionOrBuilderpublic int getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11;getBlockRelativityOffsets in interface Protos.TransactionOrBuilderpublic boolean hasConfidence()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;hasConfidence in interface Protos.TransactionOrBuilderpublic Protos.TransactionConfidence getConfidence()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;getConfidence in interface Protos.TransactionOrBuilderpublic Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;getConfidenceOrBuilder in interface Protos.TransactionOrBuilderpublic boolean hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];hasPurpose in interface Protos.TransactionOrBuilderpublic Protos.Transaction.Purpose getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];getPurpose in interface Protos.TransactionOrBuilderpublic boolean hasExchangeRate()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;hasExchangeRate in interface Protos.TransactionOrBuilderpublic Protos.ExchangeRate getExchangeRate()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;getExchangeRate in interface Protos.TransactionOrBuilderpublic Protos.ExchangeRateOrBuilder getExchangeRateOrBuilder()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;getExchangeRateOrBuilder in interface Protos.TransactionOrBuilderpublic boolean hasMemo()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;hasMemo in interface Protos.TransactionOrBuilderpublic java.lang.String getMemo()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;getMemo in interface Protos.TransactionOrBuilderpublic com.google.protobuf.ByteString getMemoBytes()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;getMemoBytes in interface Protos.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 Protos.Transaction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Transaction parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Transaction parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.Transaction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.Transaction.Builder newBuilder()
public static Protos.Transaction.Builder newBuilder(Protos.Transaction prototype)
public Protos.Transaction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.Transaction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Protos.Transaction getDefaultInstance()
public static com.google.protobuf.Parser<Protos.Transaction> parser()
public com.google.protobuf.Parser<Protos.Transaction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Protos.Transaction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder