hibuz / smart-contract-web

🏦SmartContract RestAPI example using Spring Boot and web3j

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🏦 SmartContract RestAPI project using Spring Boot and web3j

Initial Project

Create prj

Project URL

Add additional depenancy

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-web'
	implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
	implementation 'org.web3j:core:4.9.5'
	compileOnly 'org.projectlombok:lombok'
	annotationProcessor 'org.projectlombok:lombok'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

Building for production

Packaging as jar

To build the final jar and optimize the example application for production, run:

./gradlew clean bootJar

To ensure everything worked, run:

java -jar build/libs/*.jar

Then navigate to http://localhost:8080/swagger-ui/index.html in your browser.

About

🏦SmartContract RestAPI example using Spring Boot and web3j


Languages

Language:Java 100.0%