Skip to main content

Ownable

Functionality available for contracts that implement the IOwnable interface.

get

Retrieve the wallet address of the owner of the smart contract.

const owner = await contract.owner.get();
Configuration

Return Value

A string representing the owners wallet address.

string;

set

Set the owner address of the contract.

const txResult = await contract.owner.set("{{wallet_address}}");
Configuration

owner

The wallet address of the new owner.

Must be a string.

const txResult = await contract.owner.set(
"{{wallet_address}}",
);