previewWithdraw

Calls the "previewWithdraw" function on the contract.

Example

import { previewWithdraw } from "thirdweb/extensions/erc4626";
const result = await previewWithdraw({
contract,
assets: ...,
});

Parameters

Returns

The parsed result of the function call.