convertToShares

Calls the "convertToShares" function on the contract.

Example

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

Parameters

The options for the convertToShares function.

Type

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.