npm init
npm i --save-dev hardhat
npm i --save-dev @nomicfoundation/hardhat-toolbox
npm i express
npm i dotenv
npm i ethers
npm i -g nodemon
- QUICKNODE_API_KEY = "9a...51"
- WALLET_PRIVATE_KEY = "f3...0p"
npx hardhat compile
nodemon server.js
- Post functions of the API can be called with the following paths :
localhost:3000/deploy
localhost:3000/requestOwnership
with arguments in the body of the API call
- Get function of the API can be called with the following paths :
localhost:3000/contractAddress
with arguments in the body of the API call