totalAssets

Calls the "totalAssets" function on the contract.

Example

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

Parameters

The options for the totalAssets function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.