Show / Hide Table of Contents

Class DeleteAccountParams

Represents the parameters required to delete an account from the hedera network.

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

Delete an account and sweep its remaining HBAR to a funds receiver. The deleted account must sign the transaction:

// Delete an account and sweep its remaining HBAR to `fundsReceiver`.
// The account being deleted must sign the transaction; supply its
// key via Signatory if it is not already in the context.
var receipt = await client.DeleteAccountAsync(new DeleteAccountParams
{
    Account = accountToDelete,
    FundsReceiver = fundsReceiver,
    Signatory = accountSignatory
});
Console.WriteLine($"Delete status: {receipt.Status}");

Properties

| Edit this page View Source

Account

The address of the account to delete.

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

CancellationToken

Optional Cancellation token that can interrupt the delete attempt.

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

FundsReceiver

The address of the account that will receive any remaining crypto funds held by the account.

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

Signatory

Additional private key, keys or signing callback method required to delete this account.

Declaration
public Signatory? Signatory { get; set; }
Property Value
Type Description
Signatory
Remarks

Keys/callbacks added here will be combined with those already identified in the client object's context when signing this transaction.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph