WrappedTokenGatewayV3

Scroll
Scrollscan
Code Snippets

borrowETH

nonpayable

Use this function in your app

const response = await fetch('https://api.thirdweb.com/v1/contracts/write', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-secret-key': '<YOUR_SECRET_KEY>' }, body: JSON.stringify({ calls: [ { contractAddress: "0xFF75A4B698E3Ec95E608ac0f22A03B8368E05F5D", method: "function borrowETH(address, uint256 amount, uint256 interestRateMode, uint16 referralCode)", params: [, amount, interestRateMode, referralCode] } ], chainId: 534352, from: "<YOUR_WALLET_ADDRESS>" }) }); const data = await response.json();