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( options: BaseTransactionOptions< DepositParams | { asyncParams: () => Promise<DepositParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "deposit" function.
let options: BaseTransactionOptions< DepositParams | { asyncParams: () => Promise<DepositParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.