Class UpdateTokenExtensions
Extension methods for updating token properties on the network.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class UpdateTokenExtensions
Methods
| Edit this page View SourceUpdateTokenAsync(ConsensusClient, UpdateTokenParams, Action<IConsensusContext>?)
Updates the changeable properties of a Hedera Fungible Token.
Declaration
public static Task<TransactionReceipt> UpdateTokenAsync(this ConsensusClient client, UpdateTokenParams updateParameters, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client orchestrating the update. |
| UpdateTokenParams | updateParameters |
reference to the Token to update plus a number of changeable properties of the Token. |
| 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 success of the operation. |
Examples
// Update mutable token metadata. Only non-null properties are changed;
// leaving a key null leaves it untouched. Requires Administrator to
// sign. Immutable tokens (created with no Administrator) cannot be
// updated by anyone.
var receipt = await client.UpdateTokenAsync(new UpdateTokenParams
{
Token = token,
Name = "Renamed Token",
Symbol = "RMT",
Memo = "Rebranded 2026-Q2"
});
Console.WriteLine($"Update 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. |
| ConsensusException | If the network was unable to come to consensus before the duration of the transaction expired. |
| TransactionException | If the network rejected the update request as invalid or had missing data. |