Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.77 KB

readme.md

File metadata and controls

25 lines (15 loc) · 1.77 KB

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