redeem

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

Example

import { sendTransaction } from "thirdweb";
import { redeem } from "thirdweb/extensions/erc4626";
const transaction = redeem({
contract,
shares: ...,
receiver: ...,
owner: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function redeem(
RedeemParams | { asyncParams: () => Promise<RedeemParams> }
>,

Parameters

The options for the "redeem" function.

Type

RedeemParams | { asyncParams: () => Promise<RedeemParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.