Docs

deposit

Prepares a transaction to call the "deposit" function on the contract.

Example

import { deposit } from "thirdweb/extensions/erc4626";
const transaction = deposit({
contract,
assets: ...,
receiver: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.