public static final class Protos.Transaction extends com.google.protobuf.GeneratedMessageLite<Protos.Transaction,Protos.Transaction.Builder> 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.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm| 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 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 | 
|---|---|
protected java.lang.Object | 
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
             java.lang.Object arg0,
             java.lang.Object arg1)  | 
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. 
 | 
static Protos.Transaction | 
getDefaultInstance()  | 
Protos.ExchangeRate | 
getExchangeRate()
 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. 
 | 
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]; | 
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; | 
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; | 
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 
 | 
static Protos.Transaction.Builder | 
newBuilder()  | 
static Protos.Transaction.Builder | 
newBuilder(Protos.Transaction prototype)  | 
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()  | 
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic 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
public 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;public 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;public 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;public 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;public 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.TransactionOrBuilderindex - The index of the element to return.public 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.TransactionOrBuilderindex - The index of the element to return.public 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 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 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 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 static Protos.Transaction.Builder newBuilder()
public static Protos.Transaction.Builder newBuilder(Protos.Transaction prototype)
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
                                               java.lang.Object arg0,
                                               java.lang.Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Transaction,Protos.Transaction.Builder>public static Protos.Transaction getDefaultInstance()
public static com.google.protobuf.Parser<Protos.Transaction> parser()