Show / Hide Table of Contents

Class FixedRoyalty

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

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

Constructors

| Improve this Doc View Source

FixedRoyalty(Address, Address, Int64)

Public Constructor, an

FixedRoyalty
is immutable after creation.

Declaration
public FixedRoyalty(Address account, Address token, long amount)
Parameters
Type Name Description
Address account

Account receiving the royalty assessment.

Address token

The address id of the token type used to pay the royalty, if

None
then native hBar crypto is assumed.

Int64 amount

The amount of token or cryptocurrency that will be assessed and deducted from the account sending the associated token or asset.

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

Amount

The amount of token or cryptocurrency that will be assessed and deducted from the account sending the associated token or asset.

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

RoyaltyType

Identifies this royalty as a Fixed Royalty type.

Declaration
public RoyaltyType RoyaltyType { get; }
Property Value
Type Description
RoyaltyType
| Improve this Doc 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 Address Token { get; }
Property Value
Type Description
Address

Implements

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