Class TransactionTraceResult
java.lang.Object
org.hyperledger.besu.plugin.data.TransactionTraceResult
Represents the result of tracing a transaction, including its status and optional error message.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration representing the status of the transaction trace. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TransactionTraceResultCreates a TransactionTraceResult with an error status, the given transaction hash, and an error message.Get an optional error message associated with the transaction trace.Get the status of the transaction trace.org.hyperledger.besu.datatypes.HashGet the hash of the traced transaction.inthashCode()static TransactionTraceResultsuccess(org.hyperledger.besu.datatypes.Hash txHash) Creates a TransactionTraceResult with a successful status and the given transaction hash.toString()
-
Method Details
-
success
Creates a TransactionTraceResult with a successful status and the given transaction hash.- Parameters:
txHash- The hash of the traced transaction.- Returns:
- A successful TransactionTraceResult.
-
error
public static TransactionTraceResult error(org.hyperledger.besu.datatypes.Hash txHash, String errorMessage) Creates a TransactionTraceResult with an error status, the given transaction hash, and an error message.- Parameters:
txHash- The hash of the traced transaction.errorMessage- An error message describing the issue encountered during tracing.- Returns:
- An error TransactionTraceResult.
-
getTxHash
public org.hyperledger.besu.datatypes.Hash getTxHash()Get the hash of the traced transaction.- Returns:
- The hash of the transaction.
-
getStatus
Get the status of the transaction trace.- Returns:
- The status of the transaction trace.
-
errorMessage
-
equals
-
hashCode
-
toString
-