Class FixedRoyalty
The definition of a single Fixed Royalty applied to the transaction as a whole when transferring an asset or token.
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class FixedRoyalty : IRoyalty, IEquatable<FixedRoyalty>
Constructors
| Improve this Doc View SourceFixedRoyalty(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 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 SourceAccount
Account receiving the royalty assessment.
Declaration
public Address Account { get; }
Property Value
| Type | Description |
|---|---|
| Address |
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 |
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 Address Token { get; }
Property Value
| Type | Description |
|---|---|
| Address |