installExtension

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

Example

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

Parameters

Returns

A prepared transaction object.