Show / Hide Table of Contents

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.

Inheritance
object
Exception
ConsensusException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.ReferenceEquals(object, object)
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 Source

Status

The final ResponseCode returned by the network prior to transaction request expiration.

Declaration
public ResponseCode Status { get; }
Property Value
Type Description
ResponseCode
| Edit this page View Source

TransactionId

The transaction ID generated by the library (or client code) identifying the request.

Declaration
public TransactionId TransactionId { get; }
Property Value
Type Description
TransactionId

Implements

ISerializable
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph