This is a simple demo using Hedera Hashgraph
and Spring Boot
to create REST APIs. The demo makes use of the Hedera Java SDK
.
Swagger docs have been created and can be used as a UI to play with the methods.
Created By: Rahul Kothari - rcorder#4494 on Discord
The starter project supports the following Hedera APIs and methods:
- Cryptocurrency
- Create Account -
- Transfer HBAR
- Account Balance Query
- Delete Account
- Consensus Service (HCS)
- Create Topic
- Subscribe to Topic
- Submit Message
- Delete Topic
- File Service
- Create File
- Append File
- Delete File
- Query File Content
- Smart Contract
- Create Contract
- Delete Contract
- Get Contract Bytecode
- Contract Call Query
- Contract Call Transaction
Prerequisites:
- Hedera Testnet Account Sign up for one here
- JDK : 11.x
- Maven : 3.6.0
- Within this repo directory run:
$ mvn clean install
- Create a
.env
file. Please refer to .env.sample
- Via CLI:
$ mvn spring-boot:run
- Using IntelliJ:
- Navigate to
src/main/java/hedera/starter/SpringHederaStarterProjectApplication.java
- Right Click on the file
- Click "Run SpringHederaStarterProjectApplication.main()"
- Navigate to
View the Swagger Docs at http://localhost:8080/swagger-ui.html#/
This is a Hedera community maintained repository.
Created By: Rahul Kothari - rcorder#4494 on Discord.
We welcome participation from all developers! For instructions on how to contribute to this repo, please review the Contributing Guide.