Class SystemDeleteContractParams
Transaction parameters for administratively deleting a contract from the network.
Inheritance
SystemDeleteContractParams
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class SystemDeleteContractParams : TransactionParams<TransactionReceipt>
Examples
Superuser-only: remove a contract even if it's immutable. Restorable via SystemRestoreContractParams within a grace window:
// Superuser-only contract deletion, analogous to SystemDeleteFile.
// Bypasses the contract's Administrator key check. Restorable.
var receipt = await client.SystemDeleteContractAsync(new SystemDeleteContractParams
{
Contract = contract
});
Console.WriteLine($"System delete 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? |
Contract
The address of the contract to delete.
Declaration
public EntityId Contract { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Signatory
Optional additional signatories.
Declaration
public Signatory? Signatory { get; set; }
Property Value
| Type | Description |
|---|---|
| Signatory |