Class FixedRoyalty
The definition of a single Fixed Royalty applied to the transaction as a whole when transferring an NFT or token.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record FixedRoyalty : IRoyalty, IEquatable<FixedRoyalty>
Constructors
| Edit this page View SourceFixedRoyalty(EntityId, EntityId, long)
Public Constructor, a
FixedRoyalty
is immutable after creation.
Declaration
public FixedRoyalty(EntityId receiver, EntityId token, long amount)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | receiver | Address receiving the royalty assessment. |
| EntityId | token |
then native hBar crypto is assumed. |
| long | amount | The amount of token or cryptocurrency that will be assessed and deducted from the sender of the associated token or NFT. |
Properties
| Edit this page View SourceAmount
The amount of token or cryptocurrency that will be assessed and deducted from the sender of the associated token or NFT.
Declaration
public long Amount { get; }
Property Value
| Type | Description |
|---|---|
| long |
Receiver
Address receiving the royalty assessment.
Declaration
public EntityId Receiver { get; }
Property Value
| Type | Description |
|---|---|
| EntityId |
RoyaltyType
Identifies this royalty as a Fixed Royalty type.
Declaration
public RoyaltyType RoyaltyType { get; }
Property Value
| Type | Description |
|---|---|
| RoyaltyType |
Token
The address id of the token type used to pay
the royalty, if
None
then native hBar crypto is assumed.
Declaration
public EntityId Token { get; }
Property Value
| Type | Description |
|---|---|
| EntityId |