I found this quite hard to Google, and spent too much time finding it out. Here’s a quick writeup for anyone who’s just getting started with Solidity and ethers.js. A word of caution: I’m a beginner as well! Things which worked for me may not work for you. The stuff below may be very flawed for reasons I don’t understand. For personal studying purposes only, no guarantees of any kind.