execute

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

Example

import { execute } from "thirdweb/extensions/vote";
const transaction = execute({
contract,
targets: ...,
values: ...,
calldatas: ...,
descriptionHash: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.