This project demonstrates a basic use case for Hardhat Unlock.
- install deps with
yarn
ornpm i
- add your RPC endpoint to the
hardhat.config.js
(as explained here) - from your terminal, try running the following (with the address of your lock):
npx hardhat lock:info --lock-address <your-lock-address> --network <your network>
Create a lock and buy a bunch of keys
yarn hardhat run scripts/createSampleLock.js