Show / Hide Table of Contents

Class FixedRoyalty

The definition of a single Fixed Royalty applied to the transaction as a whole when transferring an NFT or token.

Inheritance
object
FixedRoyalty
Implements
IRoyalty
IEquatable<FixedRoyalty>
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 record FixedRoyalty : IRoyalty, IEquatable<FixedRoyalty>

Constructors

| Edit this page View Source

FixedRoyalty(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
The address id of the token type used to pay
the royalty, if 
None

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 Source

Amount

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
| Edit this page View Source

Receiver

Address receiving the royalty assessment.

Declaration
public EntityId Receiver { get; }
Property Value
Type Description
EntityId
| Edit this page View Source

RoyaltyType

Identifies this royalty as a Fixed Royalty type.

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

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

Implements

IRoyalty
IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph