Show / Hide Table of Contents

Class TokenRoyalty

The definition of a Royalty computed from the amount of Fungible token exchanged, can be in the form as a deduction of the token echanged, or an exise amount taken from the sender of the fungible token.

Inheritance
Object
TokenRoyalty
Implements
IRoyalty
IEquatable<TokenRoyalty>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class TokenRoyalty : IRoyalty, IEquatable<TokenRoyalty>

Constructors

| Improve this Doc View Source

TokenRoyalty(Address, Int64, Int64, Int64, Int64, Boolean)

Public Constructor, an

TokenRoyalty
is immutable after creation.

Declaration
public TokenRoyalty(Address account, long numerator, long denominator, long minimum, long maximum, bool assesAsSurcharge = false)
Parameters
Type Name Description
Address account

Account receiving the royalty assessment.

Int64 numerator

The numerator portion of the fraction of the transferred units to assess.

Int64 denominator

The denominator portion of the fraction of the transferred units to assess.

Int64 minimum

The minimum assessed value, in terms of the smallest denomination of the associated token.

Int64 maximum

The maximum allowed fee value, in terms of the smallest denomination of the associated token.

Boolean assesAsSurcharge

Determines how the royalty assessment is applied, if

true
the amount is added as an extra surcharge paid by the sender of the associated token. If
false
(the default) the amount of token received by the receiving account is reduced by the assement computed from the total amount of the associated fungible token sent by the sender.

Properties

| Improve this Doc View Source

Account

Account receiving the royalty assessment.

Declaration
public Address Account { get; }
Property Value
Type Description
Address
| Improve this Doc View Source

AssessAsSurcharge

Determines how the royalty assessment is applied, if

true
the amount is added as an extra surcharge paid by the sender of the associated token. If
false
(the default) the amount of token received by the receiving account is reduced by the assement computed from the total amount of the associated fungible token sent by the sender.

Declaration
public bool AssessAsSurcharge { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Denominator

The denominator portion of the fraction of the transferred units to assess.

Declaration
public long Denominator { get; }
Property Value
Type Description
Int64
Remarks

This is not expressed as a floating point number in order to avoid rounding fees inheret in computing platforms.

| Improve this Doc View Source

Maximum

The maximum allowed fee value, in terms of the smallest denomination of the associated token.

Declaration
public long Maximum { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

Minimum

The minimum assessed value, in terms of the smallest denomination of the associated token.

Declaration
public long Minimum { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

Numerator

The numerator portion of the fraction of the transferred units to assess.

Declaration
public long Numerator { get; }
Property Value
Type Description
Int64
Remarks

This is not expressed as a floating point number in order to avoid rounding fees inheret in computing platforms.

| Improve this Doc View Source

RoyaltyType

Identifies this royalty as a Token Royalty type.

Declaration
public RoyaltyType RoyaltyType { get; }
Property Value
Type Description
RoyaltyType

Implements

IRoyalty
System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph