setOwner

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

Example

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

Parameters

Returns

A prepared transaction object.