Calls the "deposit" function on the contract (useful to wrap ETH).
import { deposit } from "thirdweb/extensions/erc20";import { sendTransaction } from "thirdweb"; const transaction = deposit({ contract, amount: "0.1" }); await sendTransaction({ transaction, account });
function deposit( options: BaseTransactionOptions<DepositParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "deposit" function.
let options: BaseTransactionOptions<DepositParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.