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
...

Parameters

Returns

A prepared transaction object.