Prepares a transaction to call the "redeem" function on the contract.
import { sendTransaction } from "thirdweb";import { redeem } from "thirdweb/extensions/erc4626"; const transaction = redeem({ contract, shares: ..., receiver: ..., owner: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function redeem( options: BaseTransactionOptions< RedeemParams | { asyncParams: () => Promise<RedeemParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "redeem" function.
let options: BaseTransactionOptions< RedeemParams | { asyncParams: () => Promise<RedeemParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.