NFTStandardApproval
Hierarchy
- unknown
- NFTStandardApproval
Implements
Index
Constructors
constructor
Returns NFTStandardApproval
Properties
admin
The public key of the contract's administrator. This account has the authority to perform administrative actions such as pausing the contract or upgrading the verification key.
Methods
canTransfer
Determines if an NFT can be transferred.
Parameters
params: TransferExtendedParams
The transfer details.
Returns Promise<Bool>
A
Promise
resolving to aBool
indicating whether the transfer is allowed.
deploy
Deploys the contract with initial settings.
Parameters
props: NFTApprovalDeployProps
Deployment properties including admin, upgradeAuthority, uri, canPause, and isPaused.
Returns Promise<void>
ensureOwnerSignature
Ensures that the transaction is authorized by the contract owner.
Returns Promise<AccountUpdate>
A signed
AccountUpdate
from the admin.
The NFTStandardApproval contract is the default implementation of the
NFTApprovalBase
interface.