Class TransactionLocation

java.lang.Object
com.exonum.binding.common.blockchain.TransactionLocation

public abstract class TransactionLocation
extends java.lang.Object
Transaction position in the blockchain. Enumeration begins from 0.
  • Constructor Summary

    Constructors 
    Constructor Description
    TransactionLocation()  
  • Method Summary

    Modifier and Type Method Description
    abstract long getHeight()
    Height of the block where the transaction was committed.
    abstract int getIndexInBlock()
    Zero-based position of this transaction in the block.
    static com.google.gson.TypeAdapter<TransactionLocation> typeAdapter​(com.google.gson.Gson gson)
    Provides a Gson type adapter for this class.
    static TransactionLocation valueOf​(long height, int indexInBlock)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • valueOf

      public static TransactionLocation valueOf​(long height, int indexInBlock)
    • getHeight

      @SerializedName("block_height") public abstract long getHeight()
      Height of the block where the transaction was committed.
    • getIndexInBlock

      @SerializedName("position_in_block") public abstract int getIndexInBlock()
      Zero-based position of this transaction in the block. Transactions executed in the ascending order of these indices.
    • typeAdapter

      public static com.google.gson.TypeAdapter<TransactionLocation> typeAdapter​(com.google.gson.Gson gson)
      Provides a Gson type adapter for this class.
      See Also:
      CommonTypeAdapterFactory