public class BlockInfo extends java.lang.Object implements Stored
Constructor and Description |
---|
BlockInfo(java.lang.String recordId,
java.lang.Long size,
java.lang.String hash,
java.lang.String generationHash,
java.math.BigInteger totalFee,
java.util.List<java.lang.String> stateHashSubCacheMerkleRoots,
java.lang.Integer transactionsCount,
java.lang.Integer totalTransactionsCount,
java.lang.Integer statementsCount,
java.util.List<java.lang.String> subCacheMerkleRoots,
java.lang.String signature,
PublicAccount signerPublicAccount,
NetworkType networkType,
java.lang.Integer version,
BlockType type,
java.math.BigInteger height,
java.math.BigInteger timestamp,
java.math.BigInteger difficulty,
java.lang.Long feeMultiplier,
java.lang.String previousBlockHash,
java.lang.String blockTransactionsHash,
java.lang.String blockReceiptsHash,
java.lang.String stateHash,
java.lang.String proofGamma,
java.lang.String proofScalar,
java.lang.String proofVerificationHash,
Address beneficiaryAddress) |
Modifier and Type | Method and Description |
---|---|
Address |
getBeneficiaryAddress()
Returns the beneficiary address.
|
java.lang.String |
getBlockReceiptsHash()
Returns the block receipts hash.
|
java.lang.String |
getBlockTransactionsHash()
Returns the block transaction hash.
|
java.math.BigInteger |
getDifficulty()
Returns POI difficulty to harvest a block.
|
java.lang.Long |
getFeeMultiplier()
Returns the feeMultiplier defined by the harvester.
|
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.lang.String |
getPreviousBlockHash()
Returns the last block hash.
|
java.lang.String |
getProofGamma()
Returns The proof gamma.
|
java.lang.String |
getProofScalar()
Returns the proof scalar.
|
java.lang.String |
getProofVerificationHash()
Returns the proof verification hash.
|
java.util.Optional<java.lang.String> |
getRecordId()
Returns database id of the block
|
java.lang.String |
getSignature()
The signature was generated by the signerPublicAccount and can be used to validate that the
blockchain data was not modified by a node.
|
PublicAccount |
getSignerPublicAccount()
Returns public account of block harvester.
|
java.lang.Long |
getSize()
Returns the size of the block
|
java.lang.String |
getStateHash()
Returns the block state hash.
|
java.util.List<java.lang.String> |
getStateHashSubCacheMerkleRoots() |
java.lang.Integer |
getStatementsCount()
Returns number of statements included the block.
|
java.util.List<java.lang.String> |
getSubCacheMerkleRoots() |
java.math.BigInteger |
getTimestamp()
Returns the number of seconds elapsed since the creation of the nemesis blockchain.
|
java.math.BigInteger |
getTotalFee()
Returns total fee paid to the account harvesting the block.
|
java.lang.Integer |
getTotalTransactionsCount()
Total number of transactions confirmed in this block, including *embedded* transactions (i.e.
|
java.lang.Integer |
getTransactionsCount()
Number of transactions confirmed in this block.
|
BlockType |
getType()
Returns block transaction type.
|
java.lang.Integer |
getVersion()
Returns block transaction version.
|
public BlockInfo(java.lang.String recordId, java.lang.Long size, java.lang.String hash, java.lang.String generationHash, java.math.BigInteger totalFee, java.util.List<java.lang.String> stateHashSubCacheMerkleRoots, java.lang.Integer transactionsCount, java.lang.Integer totalTransactionsCount, java.lang.Integer statementsCount, java.util.List<java.lang.String> subCacheMerkleRoots, java.lang.String signature, PublicAccount signerPublicAccount, NetworkType networkType, java.lang.Integer version, BlockType type, java.math.BigInteger height, java.math.BigInteger timestamp, java.math.BigInteger difficulty, java.lang.Long feeMultiplier, java.lang.String previousBlockHash, java.lang.String blockTransactionsHash, java.lang.String blockReceiptsHash, java.lang.String stateHash, java.lang.String proofGamma, java.lang.String proofScalar, java.lang.String proofVerificationHash, Address beneficiaryAddress)
public java.lang.Long getSize()
public java.lang.String getHash()
public java.lang.String getGenerationHash()
public java.math.BigInteger getTotalFee()
public java.lang.Integer getTransactionsCount()
public java.lang.Integer getStatementsCount()
public java.util.List<java.lang.String> getSubCacheMerkleRoots()
public java.lang.String getSignature()
public PublicAccount getSignerPublicAccount()
PublicAccount
public NetworkType getNetworkType()
NetworkType
public java.lang.Integer getVersion()
public BlockType getType()
public java.math.BigInteger getHeight()
public java.math.BigInteger getTimestamp()
public java.math.BigInteger getDifficulty()
public java.lang.Long getFeeMultiplier()
public java.lang.Integer getTotalTransactionsCount()
public java.lang.String getPreviousBlockHash()
public java.lang.String getBlockTransactionsHash()
public java.lang.String getBlockReceiptsHash()
public java.lang.String getStateHash()
public Address getBeneficiaryAddress()
public java.lang.String getProofGamma()
public java.lang.String getProofScalar()
public java.lang.String getProofVerificationHash()
public java.util.Optional<java.lang.String> getRecordId()
getRecordId
in interface Stored
public java.util.List<java.lang.String> getStateHashSubCacheMerkleRoots()