public class BlockInfo
extends java.lang.Object
| Constructor and Description |
|---|
BlockInfo(java.lang.String hash,
java.lang.String generationHash,
java.util.Optional<java.math.BigInteger> totalFee,
java.util.Optional<java.lang.Integer> numTransactions,
java.lang.String signature,
PublicAccount signer,
NetworkType networkType,
java.lang.Integer version,
int type,
java.math.BigInteger height,
java.math.BigInteger timestamp,
java.math.BigInteger difficulty,
java.lang.String previousBlockHash,
java.lang.String blockTransactionsHash) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBlockTransactionsHash()
Returns the block transaction hash.
|
java.math.BigInteger |
getDifficulty()
Returns POI difficulty to harvest a block.
|
java.lang.String |
getGenerationHash()
Returns block generation hash.
|
java.lang.String |
getHash()
Returns block hash.
|
java.math.BigInteger |
getHeight()
Returns height of which the block was confirmed.
|
NetworkType |
getNetworkType()
Returns network type.
|
java.util.Optional<java.lang.Integer> |
getNumTransactions()
Returns number of transactions included the block.
|
java.lang.String |
getPreviousBlockHash()
Returns the last block hash.
|
java.lang.String |
getSignature()
Returns The block signature.
|
PublicAccount |
getSigner()
Returns public account of block harvester.
|
java.math.BigInteger |
getTimestamp()
Returns the number of seconds elapsed since the creation of the nemesis blockchain.
|
java.util.Optional<java.math.BigInteger> |
getTotalFee()
Returns total fee paid to the account harvesting the block.
|
int |
getType()
Returns block transaction type.
|
java.lang.Integer |
getVersion()
Returns block transaction version.
|
java.lang.String |
toString() |
public BlockInfo(java.lang.String hash,
java.lang.String generationHash,
java.util.Optional<java.math.BigInteger> totalFee,
java.util.Optional<java.lang.Integer> numTransactions,
java.lang.String signature,
PublicAccount signer,
NetworkType networkType,
java.lang.Integer version,
int type,
java.math.BigInteger height,
java.math.BigInteger timestamp,
java.math.BigInteger difficulty,
java.lang.String previousBlockHash,
java.lang.String blockTransactionsHash)
public java.lang.String getHash()
public java.lang.String getGenerationHash()
public java.util.Optional<java.math.BigInteger> getTotalFee()
public java.util.Optional<java.lang.Integer> getNumTransactions()
public java.lang.String getSignature()
public PublicAccount getSigner()
PublicAccountpublic NetworkType getNetworkType()
NetworkTypepublic java.lang.Integer getVersion()
public int getType()
public java.math.BigInteger getHeight()
public java.math.BigInteger getTimestamp()
public java.math.BigInteger getDifficulty()
public java.lang.String getPreviousBlockHash()
public java.lang.String getBlockTransactionsHash()
public java.lang.String toString()
toString in class java.lang.Object