This project is a Java-based RESTful API designed to interact with smart contracts deployed on an Ethereum-compatible client using Hyperledger Besu.
The API enables:
- Retrieving the name of an ERC20 token
- Querying the amount of minted tokens
UpgradableTokenTest.sol– a simple upgradable ERC20 token contract
git clone https://github.com/dariusjvc/Java-RestAPI-For-Ethereum.git
cd java-rest-api-for-evmUse Hardhat and the Quorum Test Network to deploy the smart contract.
Note: Make sure you have all prerequisites installed (Node.js, Hardhat, Docker, etc.)
Open the project with IntelliJ IDEA or your preferred Java IDE and run the Spring Boot application.
Once running, access the Swagger UI at:
http://localhost:8080/ethereum-api/swagger-ui/index.html#/
- ✅ Java Spring Boot backend
- ✅ Web3j for Ethereum interaction
- ✅ Swagger UI for easy testing
- ✅ Deployable on a local Besu node
- Add authentication and security
- Expand smart contract functionality
- Dockerize the application for easier deployment
