NftItemRoyalty class

Represents an NFT item contract with royalty features IMPORTANT: Initialize the provider to use

Inheritance

Constructors

NftItemRoyalty(InternalAddress address, [ContractInit? init])
Constructs an instance of the NftItemRoyalty contract address — address of the contract init — optional initialization data for the contract's code and data

Properties

abi ContractABI?
getter/setter pairinherited
address InternalAddress
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
init ContractInit?
getter/setter pairinherited
provider ContractProvider?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getNftData() Future<({InternalAddress? collectionAddress, BigInt index, Cell? individualContent, bool init, InternalAddress? ownerAddress})>
Returns the NFT data from the contract as a record, wrapped in a Future:
inherited
getRoyaltyParams() Future<({BigInt denominator, InternalAddress? destination, bool init, BigInt numerator})>
Returns the royalty parameters of the NFT from the contract as a record, wrapped in a Future:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendGetRoyaltyParams(Sender via, {required BigInt value, required BigInt queryId}) Future<void>
Returns nothing, sends a request to get the royalty parameters from the contract
sendGetStaticData(Sender via, {required BigInt value, required BigInt queryId}) Future<void>
Returns nothing, sends static data from the contract
inherited
sendTransfer(Sender via, {required BigInt value, required BigInt queryId, required InternalAddress newOwner, required InternalAddress responseDestination, Cell? customPayload, required BigInt forwardAmount, Cell? forwardPayload}) Future<void>
Returns nothing, sends a transfer (internal message) from the contract
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createFromAddress(InternalAddress address) NftItemRoyalty
Returns a new NftItemRoyalty from the InternalAddress address