redeem

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

Example

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