Ethers.js is the backbone of interacting with smart contracts in JavaScript.
In Hardhat, it comes pre-integrated so you can test, deploy, and simulate interactions with ease.
Below is a breakdown of every essential concept from your cheat sheet — explained in detail:
getSigners() — Get Default Accountsconst [owner, addr1, addr2] = await ethers.getSigners();
Signer, meaning it can send transactions and sign messages.owner is usually the contract deployer.addr1, addr2 are test users.getContractFactory() — Load a Contractconst MyContract = await ethers.getContractFactory("MyContract");