Show / Hide Table of Contents

Class PrepareNetworkUpgradeParams

Transaction parameters for preparing the network for a software upgrade.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
PrepareNetworkUpgradeParams
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 PrepareNetworkUpgradeParams : TransactionParams<TransactionReceipt>
Examples

Step 1 of the upgrade flow: stage an upgrade image and its hash so every node can validate the file before the scheduled switchover:

// Stage a network upgrade: nodes will validate the file's contents
// against `FileHash` before accepting the subsequent schedule step.
// Requires the superuser payer (typically 0.0.50 or 0.0.55).
var receipt = await client.PrepareNetworkUpgradeAsync(new PrepareNetworkUpgradeParams
{
    File = upgradeFile,
    FileHash = expectedHash
});
Console.WriteLine($"Prepare 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

File

Address of the upgrade file (previously uploaded).

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

FileHash

Hash of the upgrade file's contents.

Declaration
public ReadOnlyMemory<byte> FileHash { get; set; }
Property Value
Type Description
ReadOnlyMemory<byte>
| 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