Show / Hide Table of Contents

Class UpdateRoyaltiesParams

Transaction Parameters for updating the royalties (custom fees) associated with a token.

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

Replace the royalty schedule on a token — a 2.5% fungible-transfer fee:

// Replace the royalty (custom transfer fee) schedule on a token.
// Pass null to clear all royalties. Requires the RoyaltiesEndorsement.
// Each IRoyalty implementation represents a different fee model —
// FixedRoyalty (flat fee in a given token), TokenRoyalty (percentage
// of fungible transfer), or NftRoyalty (royalty on NFT sales).
var royalties = new IRoyalty[]
{
    // 2.5% of every fungible transfer goes to royaltyReceiver
    new TokenRoyalty(royaltyReceiver, numerator: 25, denominator: 1000,
                     minimum: 0, maximum: 0)
};
var receipt = await client.UpdateRoyaltiesAsync(token, royalties);
Console.WriteLine($"UpdateRoyalties status: {receipt.Status}");

Properties

| Edit this page View Source

CancellationToken

Optional cancellation token. Cancelling stops the client waiting; it cannot recall a transaction already sent. Cancelled after the send, the outcome is unknown: settle it by its transaction id on a mirror node rather than resubmitting it.

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

Royalties

The list of royalties to apply to token transactions, may be a blank list or null, this list replaces the previous list of royalties in full.

Declaration
public IReadOnlyList<IRoyalty>? Royalties { get; set; }
Property Value
Type Description
IReadOnlyList<IRoyalty>
| Edit this page View Source

Signatory

Additional private key, keys or signing callback method required to authorize the royalty (fee schedule) update. Typically matches the Endorsement assigned to the royalty 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 royalties of this token.

| Edit this page View Source

Token

The ID of the token definition to update.

Declaration
public EntityId Token { get; set; }
Property Value
Type Description
EntityId
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph