Class MintTokenParams
Transaction Parameters for Minting Tokens to the treasury account.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class MintTokenParams : TransactionParams<TokenReceipt>
Examples
Mint additional units of a fungible token into its treasury. The supply key must sign the transaction:
// Mint 500,000 additional tokens (smallest unit) into the token's
// treasury account. The transaction must be signed by the token's
// supply key — supply it via the client's Signatory or on the params.
var receipt = await client.MintTokenAsync(token, 500_000);
Console.WriteLine($"Mint status: {receipt.Status}");
Console.WriteLine($"New circulation: {receipt.Circulation}");
Properties
| Edit this page View SourceAmount
The Amount of fungible tokens to mint, specified in the smallest denomination.
Declaration
public ulong Amount { get; set; }
Property Value
| Type | Description |
|---|---|
| ulong |
CancellationToken
Optional cancellation token to interrupt the token minting submission process.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
Signatory
Additional private key, keys or signing callback method required to authorize the mint. Typically matches the Endorsement assigned to the supply key for the token if it is not already set as the payer for the transaction.
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 to change the state of this account.
Token
The identifier of the fungible token to mint.
Declaration
public EntityId Token { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |