Prepares a transaction to call the "delegate" function on the contract.
import { delegate } from "thirdweb/extensions/erc20"; const transaction = delegate({ contract, delegatee: ..., overrides: { ... }}); // Send the transaction...
function delegate( options: BaseTransactionOptions< DelegateParams | { asyncParams: () => Promise<DelegateParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "delegate" function.
let options: BaseTransactionOptions< DelegateParams | { asyncParams: () => Promise<DelegateParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.