WrappedTokenGatewayV3
ScrollBorrowETH
(borrowETH)
nonpayable
Use this function in your app
import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({ contract, method: "function borrowETH(address, uint256 amount, uint256 interestRateMode, uint16 referralCode)", params: [, amount, interestRateMode, referralCode]});const { transactionHash } = await sendTransaction({ transaction, account});