public class TransactionInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static TransactionInfo |
create(java.math.BigInteger height,
java.lang.Integer index,
java.lang.String id,
java.lang.String hash,
java.lang.String merkleComponentHash)
Create transaction info object for a transaction.
|
static TransactionInfo |
create(java.math.BigInteger height,
java.lang.String hash,
java.lang.String merkleComponentHash)
Create transaction info retrieved by listener.
|
static TransactionInfo |
createAggregate(java.math.BigInteger height,
java.lang.Integer index,
java.lang.String id,
java.lang.String aggregateHash,
java.lang.String aggregateId)
Create transaction info object for aggregate transaction inner transaction.
|
java.util.Optional<java.lang.String> |
getAggregateHash()
Returns hash of the aggregate transaction.
|
java.util.Optional<java.lang.String> |
getAggregateId()
Returns id of the aggregate transaction.
|
java.util.Optional<java.lang.String> |
getHash()
Returns transaction hash.
|
java.math.BigInteger |
getHeight()
Returns block height in which the transaction was included.
|
java.util.Optional<java.lang.String> |
getId()
Returns transaction id.
|
java.util.Optional<java.lang.Integer> |
getIndex()
Returns index representing either transaction index/position within block or within an
aggregate transaction.
|
java.util.Optional<java.lang.String> |
getMerkleComponentHash()
Returns transaction merkle component hash.
|
public static TransactionInfo createAggregate(java.math.BigInteger height, java.lang.Integer index, java.lang.String id, java.lang.String aggregateHash, java.lang.String aggregateId)
height
- Block height in which the transaction was included.index
- The transaction index.id
- transaction id.aggregateHash
- The hash of the aggregate transaction.aggregateId
- The id of the aggregate transaction.public static TransactionInfo create(java.math.BigInteger height, java.lang.Integer index, java.lang.String id, java.lang.String hash, java.lang.String merkleComponentHash)
height
- Block height in which the transaction was included.index
- The transaction index.id
- The transaction database id.hash
- The transaction hash.merkleComponentHash
- The transaction merkle component hash.public static TransactionInfo create(java.math.BigInteger height, java.lang.String hash, java.lang.String merkleComponentHash)
height
- Block height in which the transaction was included.hash
- The transaction hashmerkleComponentHash
- The transaction merkle component hash.public java.math.BigInteger getHeight()
public java.util.Optional<java.lang.Integer> getIndex()
public java.util.Optional<java.lang.String> getId()
public java.util.Optional<java.lang.String> getHash()
public java.util.Optional<java.lang.String> getMerkleComponentHash()
public java.util.Optional<java.lang.String> getAggregateHash()
public java.util.Optional<java.lang.String> getAggregateId()