Class TransactionLocation
java.lang.Object
com.exonum.binding.common.blockchain.TransactionLocation
public abstract class TransactionLocation extends Object
Transaction position in the blockchain. Enumeration begins from 0.
-
Constructor Summary
Constructors Constructor Description TransactionLocation() -
Method Summary
Modifier and Type Method Description abstract longgetHeight()Height of the block where the transaction was committed.abstract longgetIndexInBlock()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 TransactionLocationvalueOf(long height, long indexInBlock)
-
Constructor Details
-
TransactionLocation
public TransactionLocation()
-
-
Method Details
-
valueOf
-
getHeight
@SerializedName("block_height") public abstract long getHeight()Height of the block where the transaction was committed. -
getIndexInBlock
@SerializedName("position_in_block") public abstract long 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
-