Class CallRecords
java.lang.Object
com.exonum.binding.core.blockchain.CallRecords
public final class CallRecords
extends java.lang.Object
Provides information about call errors within a specific block.
This data type can be used to get information or build proofs that execution of a certain call ended up with a particular status.
Execution errors are preserved for transactions and before/after transaction handlers.
Use Blockchain.getCallRecords(long)
to instantiate this class.
-
Method Summary
Modifier and Type Method Description java.util.Optional<Errors.ExecutionError>
get(Blockchain.CallInBlock callInBlock)
Finds the error, if any, occurred in the given call.java.util.Map<Blockchain.CallInBlock,Errors.ExecutionError>
getErrors()
Returns all errors in the block.Proofs.CallProof
getProof(Blockchain.CallInBlock callInBlock)
Returns a cryptographic proof of authenticity for a top-level call within a block.
-
Method Details
-
getErrors
Returns all errors in the block. -
get
Finds the error, if any, occurred in the given call.- Parameters:
callInBlock
- the call ID- Returns:
- an ExecutionError if one occurred in the given call in this block;
or
Optional.empty()
if the call completed successfully or did not happen at all - See Also:
CallInBlocks
-
getProof
Returns a cryptographic proof of authenticity for a top-level call within a block.- Parameters:
callInBlock
- the call ID- See Also:
- Call Result Proofs,
CallInBlocks
-