OwnableContract

Interface: OwnableContract

Methods overview

  • transferOwnership()

Defined in: packages/nft/src/interfaces/ownable.ts:14

Interface representing ownable functionality for smart contracts.

The OwnableContract interface extends SmartContract and provides methods to ensure that only the owner
can perform certain actions and to allow the transfer of ownership to a new owner.

By implementing the Ownable interface, contracts can secure critical operations and provide a transparent
mechanism for ownership management.

Methods

transferOwnership()

transferOwnership(to: PublicKey): Promise<PublicKey>

Defined in: packages/nft/src/interfaces/ownable.ts:21

Transfers ownership of the contract to a new owner.

Parameters

to

PublicKey

The public key of the new owner.

Returns

Promise<PublicKey>

A promise that resolves to the public key of the old owner.