Interface Protos.TransactionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
Protos.Transaction, Protos.Transaction.Builder
Enclosing class:
Protos

public static interface Protos.TransactionOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Details

    • hasVersion

      boolean hasVersion()
       See Wallet.java for detailed description of pool semantics
       
      required int32 version = 1;
      Returns:
      Whether the version field is set.
    • getVersion

      int getVersion()
       See Wallet.java for detailed description of pool semantics
       
      required int32 version = 1;
      Returns:
      The version.
    • hasHash

      boolean hasHash()
      required bytes hash = 2;
      Returns:
      Whether the hash field is set.
    • getHash

      com.google.protobuf.ByteString getHash()
      required bytes hash = 2;
      Returns:
      The hash.
    • hasPool

      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;
      Returns:
      Whether the pool field is set.
    • 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;
      Returns:
      The pool.
    • hasLockTime

      boolean hasLockTime()
       The nLockTime field is useful for contracts.
       
      optional uint32 lock_time = 4;
      Returns:
      Whether the lockTime field is set.
    • getLockTime

      int getLockTime()
       The nLockTime field is useful for contracts.
       
      optional uint32 lock_time = 4;
      Returns:
      The lockTime.
    • hasUpdatedAt

      boolean hasUpdatedAt()
       millis since epoch the transaction was last updated
       
      optional int64 updated_at = 5;
      Returns:
      Whether the updatedAt field is set.
    • getUpdatedAt

      long getUpdatedAt()
       millis since epoch the transaction was last updated
       
      optional int64 updated_at = 5;
      Returns:
      The updatedAt.
    • getTransactionInputList

      List<Protos.TransactionInput> getTransactionInputList()
      repeated .wallet.TransactionInput transaction_input = 6;
    • getTransactionInput

      Protos.TransactionInput getTransactionInput(int index)
      repeated .wallet.TransactionInput transaction_input = 6;
    • getTransactionInputCount

      int getTransactionInputCount()
      repeated .wallet.TransactionInput transaction_input = 6;
    • getTransactionOutputList

      List<Protos.TransactionOutput> getTransactionOutputList()
      repeated .wallet.TransactionOutput transaction_output = 7;
    • getTransactionOutput

      Protos.TransactionOutput getTransactionOutput(int index)
      repeated .wallet.TransactionOutput transaction_output = 7;
    • getTransactionOutputCount

      int getTransactionOutputCount()
      repeated .wallet.TransactionOutput transaction_output = 7;
    • getBlockHashList

      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;
      Returns:
      A list containing the blockHash.
    • getBlockHashCount

      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;
      Returns:
      The count of blockHash.
    • getBlockHash

      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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The blockHash at the given index.
    • getBlockRelativityOffsetsList

      List<Integer> getBlockRelativityOffsetsList()
      repeated int32 block_relativity_offsets = 11;
      Returns:
      A list containing the blockRelativityOffsets.
    • getBlockRelativityOffsetsCount

      int getBlockRelativityOffsetsCount()
      repeated int32 block_relativity_offsets = 11;
      Returns:
      The count of blockRelativityOffsets.
    • getBlockRelativityOffsets

      int getBlockRelativityOffsets(int index)
      repeated int32 block_relativity_offsets = 11;
      Parameters:
      index - The index of the element to return.
      Returns:
      The blockRelativityOffsets at the given index.
    • hasConfidence

      boolean hasConfidence()
       Data describing where the transaction is in the chain.
       
      optional .wallet.TransactionConfidence confidence = 9;
      Returns:
      Whether the confidence field is set.
    • getConfidence

       Data describing where the transaction is in the chain.
       
      optional .wallet.TransactionConfidence confidence = 9;
      Returns:
      The confidence.
    • hasPurpose

      boolean hasPurpose()
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      Returns:
      Whether the purpose field is set.
    • getPurpose

      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      Returns:
      The purpose.
    • hasExchangeRate

      boolean hasExchangeRate()
       Exchange rate that was valid when the transaction was sent.
       
      optional .wallet.ExchangeRate exchange_rate = 12;
      Returns:
      Whether the exchangeRate field is set.
    • getExchangeRate

      Protos.ExchangeRate getExchangeRate()
       Exchange rate that was valid when the transaction was sent.
       
      optional .wallet.ExchangeRate exchange_rate = 12;
      Returns:
      The exchangeRate.
    • hasMemo

      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;
      Returns:
      Whether the memo field is set.
    • getMemo

      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;
      Returns:
      The memo.
    • getMemoBytes

      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;
      Returns:
      The bytes for memo.