Docs

deposit

Calls the "deposit" function on the contract.

Example

import { deposit } from "thirdweb/extensions/erc20";
const transaction = deposit();
// Send the transaction
...

Parameters

Returns

A prepared transaction object.