This repository contains the code for the Message Storage smart contract and the Node JS server that interacts with the smart contract.
The smart contract is deployed and verified on the Sepollia network. It can be accessed using the following address: 0x4080574e24777304A60daBdF9B394FD9497596a4
- Clone the repository
- cd into the
contracts
directory - Follow the instructions in the
README.md
file in thecontracts
directory to deploy the smart contract - cd into the
backend
directory - Follow the instructions in the
README.md
file in thebackend
directory to run the Node JS server
- Start the Node JS server
- Use the API endpoints to interact with the smart contract
- The server will be running on
http://localhost:3000
- You can see the incoming and outgoing messages on the console
- Use the following API endpoints to interact with the smart contract:
- GET /api/message (more details in the backend README)
- POST /api/message (more details in the backend README)
For the smart contract:
- Solidity
- Hardhat
For the Node JS server:
- Node JS
- Express
- Ethers.js
- TypeScript
- Dotenv