Prepares a transaction to call the "redeem" function on the contract.
import { redeem } from "thirdweb/extensions/erc4626"; const transaction = redeem({ contract, shares: ..., receiver: ..., owner: ..., overrides: { ... }}); // Send the transaction...
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.