Skip to content

ericglau/restclient-web3api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroProfile application using Web3api for blockchain interaction

Introduction

This project provides an example of how a cloud-native Java application can easily call a REST API through generated Java interfaces.

The scenario demonstrates using Amberdata's Web3api to interact with the Ethereum public blockchain to predict gas prices for transactions.

Running the project

Run the project with the following command. This runs the application in development mode allowing you to access it through the Open Liberty server, while any further changes that you make to the source code will be reflected automatically.

mvn liberty:dev

Open your browser at the following URL to invoke a servlet which accesses Web3api to return predicted gas prices for Ethereum.

http://localhost:9080/gas

How it was built