Deposit ETH

Use the depositEther method to deposit ETH from ethereum to polygon. For example:

const result = await posClient.depositEther(<amount>, <userAddress>);

const txHash = await result.getTransactionHash();

const txReceipt = await result.getReceipt();

Last update: January 17, 2024
Authors: avenbreaks