getTestWETH()
Converts MATIC into WETH on Polygon's Mumbai network for testing purchases.
This method is only available on Mumbai and is not available on the Ethereum network.
Example Usage
const ethAmount = 0.1;
const transaction = await contract.getTestWETH(ethAmount);
await contract.waitForTransaction(transaction);
Logging
The SDK will prefix all logs from getTestWETH()
with HM (getTestWETH) -
Possible Errors
Can only get test WETH on Mumbai
- When attempting to get WETH on the wrong network
Feedback
Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.
Updated 9 months ago