Class DeleteAccountParams
Represents the parameters required to delete an account from the hedera network.
Inherited Members
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 SourceAccount
The address of the account to delete.
Declaration
public EntityId Account { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
CancellationToken
Optional Cancellation token that can interrupt the delete attempt.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
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 |
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.