Prepares a transaction to call the "deposit" function on the contract.
import { deposit } from "thirdweb/extensions/erc4626"; const transaction = deposit({ contract, assets: ..., receiver: ..., overrides: { ... }}); // Send the transaction...
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.