Prepares a transaction to call the "deposit" function on the contract.
import { sendTransaction } from "thirdweb";import { deposit } from "thirdweb/extensions/erc4626"; const transaction = deposit({ contract, assets: ..., receiver: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function deposit( >,
The options for the "deposit" function.
>;
A prepared transaction object.