transferOwnership

Prepares a transaction to call the "transferOwnership" function on the contract.

Example

import { transferOwnership } from "thirdweb/extensions/modular";
const transaction = transferOwnership({
contract,
newOwner: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.