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 long
getHeight()
Height of the block where the transaction was committed.abstract long
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, long indexInBlock)
-
-
-
Method Detail
-
valueOf
public static TransactionLocation valueOf(long height, long 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 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:
TransactionLocationAdapterFactory
-
-