Docs

setOwner

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

Example

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

Parameters

Returns

A prepared transaction object.