Class ContinueTokenExtensions
Extension methods for un-pausing a token on the network.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class ContinueTokenExtensions
Methods
| Edit this page View SourceContinueTokenAsync(ConsensusClient, ContinueTokenParams, Action<IConsensusContext>?)
Continues/Un-Pauses all accounts' ability to send or receive the specified token (unless they have been suspended/frozen)
Declaration
public static Task<TransactionReceipt> ContinueTokenAsync(this ConsensusClient client, ContinueTokenParams continueParams, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client orchestrating the continuation. |
| ContinueTokenParams | continueParams | The details identifying the token to continue/un-pause. |
| Action<IConsensusContext> | configure | Optional callback method providing an opportunity to modify the execution configuration for just this method call. It is executed prior to submitting the request to the network. |
Returns
| Type | Description |
|---|---|
| Task<TransactionReceipt> | A transaction receipt indicating a successful operation. |
Examples
// Reverse a previous PauseTokenAsync.
var receipt = await client.ContinueTokenAsync(token);
Console.WriteLine($"Continue status: {receipt.Status}");
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If required arguments are missing. |
| InvalidOperationException | If required context configuration is missing. |
| PrecheckException | If the gateway node rejected the request upon submission, for example, if the token is already deleted. |
| ConsensusException | If the network was unable to come to consensus before the duration of the transaction expired. |
| TransactionException | If the network rejected the request as invalid or had missing data. |
ContinueTokenAsync(ConsensusClient, EntityId, Action<IConsensusContext>?)
Continues/Un-Pauses all accounts' ability to send or receive the specified token (unless they have been suspended/frozen)
Declaration
public static Task<TransactionReceipt> ContinueTokenAsync(this ConsensusClient client, EntityId token, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client orchestrating the continuation. |
| EntityId | token | The identifier of the token to continue/un-pause to re-enable transfers between accounts. |
| Action<IConsensusContext> | configure | Optional callback method providing an opportunity to modify the execution configuration for just this method call. It is executed prior to submitting the request to the network. |
Returns
| Type | Description |
|---|---|
| Task<TransactionReceipt> | A transaction receipt indicating a successful operation. |
Examples
// Reverse a previous PauseTokenAsync.
var receipt = await client.ContinueTokenAsync(token);
Console.WriteLine($"Continue status: {receipt.Status}");
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If required arguments are missing. |
| InvalidOperationException | If required context configuration is missing. |
| PrecheckException | If the gateway node rejected the request upon submission, for example, if the token is already deleted. |
| ConsensusException | If the network was unable to come to consensus before the duration of the transaction expired. |
| TransactionException | If the network rejected the request as invalid or had missing data. |