previewWithdraw

Calls the "previewWithdraw" function on the contract.

Example

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

Parameters

The options for the previewWithdraw function.

Type

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.