Class AssetRoyalty
Represents a Royalty type computed from value given in exchange for receiving an Asset (NFT).
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class AssetRoyalty : IRoyalty, IEquatable<AssetRoyalty>
Constructors
| Improve this Doc View SourceAssetRoyalty(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 then
native hBar crypto is assumed.
|
Properties
| Improve this Doc View SourceAccount
Account receiving the royalty assessment.
Declaration
public Address Account { get; }
Property Value
Type | Description |
---|---|
Address |
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.
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.
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 |
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.
RoyaltyType
Identifies this royalty as an Asset Royalty type.
Declaration
public RoyaltyType RoyaltyType { get; }
Property Value
Type | Description |
---|---|
RoyaltyType |