Prepares a transaction to call the "delegate" function on the contract.
import { sendTransaction } from "thirdweb";import { delegate } from "thirdweb/extensions/erc20"; const transaction = delegate({ contract, delegatee: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function delegate( >,
The options for the "delegate" function.
>;
A prepared transaction object.