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: November 30, 2023
Authors: kmurphypolygon