Show / Hide Table of Contents

Class SuspendNetworkParams

Transaction parameters for suspending network operations at a specified consensus time.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
SuspendNetworkParams
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class SuspendNetworkParams : TransactionParams<TransactionReceipt>
Examples

Emergency freeze — halts every node at the given consensus timestamp. Superuser payer only:

// Freeze the entire network at a future consensus timestamp. Every
// node will stop accepting transactions at that moment. Requires
// the superuser payer — reserved for emergency maintenance.
var receipt = await client.SuspendNetworkAsync(new SuspendNetworkParams
{
    Consensus = new ConsensusTimeStamp(DateTime.UtcNow.AddHours(1))
});
Console.WriteLine($"Suspend status: {receipt.Status}");

Properties

| Edit this page View Source

CancellationToken

An optional cancellation token that can be used to interrupt the transaction.

Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
Type Description
CancellationToken?
| Edit this page View Source

Consensus

The time of consensus that nodes will stop services, this date must be in the future relative to the submission of this transaction.

Declaration
public ConsensusTimeStamp Consensus { get; set; }
Property Value
Type Description
ConsensusTimeStamp
| Edit this page View Source

Signatory

Optional additional signatories.

Declaration
public Signatory? Signatory { get; set; }
Property Value
Type Description
Signatory
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph