Show / Hide Table of Contents

Class AssetRoyalty

Represents a Royalty type computed from value given in exchange for receiving an Asset (NFT).

Inheritance
Object
AssetRoyalty
Implements
IRoyalty
IEquatable<AssetRoyalty>
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 AssetRoyalty : IRoyalty, IEquatable<AssetRoyalty>

Constructors

| Improve this Doc View Source

AssetRoyalty(Address, Int64, Int64, Int64, Address)

Public Constructor, an

AssetRoyalty
is immutable after creation.

Declaration
public AssetRoyalty(Address account, long numerator, long denominator, long fallbackAmount, Address fallbackToken)
Parameters
Type Name Description
Address account

Account receiving the royalty assessment.

Int64 numerator

The denominator portion of the assement fraction of the value exchanged in return for the NFT.

Int64 denominator

The denominator portion of the assement fraction of the value exchanged in return for the NFT.

Int64 fallbackAmount

The fixed amount of token or cryptocurrency that will be assessed from the account receiving the associated token(s) if the transaction transfering the token provides no other discernable exchange of value in payment.

Address fallbackToken

The address id of the token type used to pay the royalty if no other transfer value exists in payment for the tranfer of the associated token or asset, if set to

None
then native hBar crypto is assumed.

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

Denominator

The denominator portion of the assement fraction of the value exchanged in return for the NFT.

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

FallbackAmount

The fixed amount of token or cryptocurrency that will be assessed from the account receiving the associated token(s) if the transaction transfering the token provides no other discernable exchange of value in payment.

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

Set to

0
if no fallback amount is required.

| Improve this Doc View Source

FallbackToken

The address id of the token type used to pay the royalty if no other transfer value exists in payment for the tranfer of the associated token or asset, if set to

None
then native hBar crypto is assumed.

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

Numerator

The numerator portion of the assement fraction of the value exchanged in return for the NFT.

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 an Asset 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