Class PrepareNetworkUpgradeParams
Transaction parameters for preparing the network for a software upgrade.
Inheritance
PrepareNetworkUpgradeParams
Inherited Members
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 SourceCancellationToken
An optional cancellation token that can be used to interrupt the transaction.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
File
Address of the upgrade file (previously uploaded).
Declaration
public EntityId File { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
FileHash
Hash of the upgrade file's contents.
Declaration
public ReadOnlyMemory<byte> FileHash { get; set; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
Signatory
Optional additional signatories.
Declaration
public Signatory? Signatory { get; set; }
Property Value
| Type | Description |
|---|---|
| Signatory |