Class ConsensusException
Exception thrown when a network call was accepted by the gateway node but did not achieve network consensus before the expiration timeout of the transaction request occurred.
Implements
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class ConsensusException : Exception, ISerializable
Remarks
This exception is always transient — the transaction simply timed out before enough nodes agreed. It is safe to retry with the same parameters; the SDK will generate a new TransactionId for the retry.
The default transaction validity window is controlled by
IConsensusContext.TransactionDuration (typically 120 seconds).
If you are consistently hitting this exception on a healthy network,
consider increasing TransactionDuration or checking whether the
target gossip node is reachable.
Properties
| Edit this page View SourceStatus
The final ResponseCode returned by the network prior to transaction request expiration.
Declaration
public ResponseCode Status { get; }
Property Value
| Type | Description |
|---|---|
| ResponseCode |
TransactionId
The transaction ID generated by the library (or client code) identifying the request.
Declaration
public TransactionId TransactionId { get; }
Property Value
| Type | Description |
|---|---|
| TransactionId |