Class SuspendNetworkParams
Transaction parameters for suspending network operations at a specified consensus time.
Inherited Members
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 SourceCancellationToken
An optional cancellation token that can be used to interrupt the transaction.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
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 |
Signatory
Optional additional signatories.
Declaration
public Signatory? Signatory { get; set; }
Property Value
| Type | Description |
|---|---|
| Signatory |