Docs

previewDeposit

Calls the "previewDeposit" function on the contract.

Example

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

Parameters

Returns

The parsed result of the function call.