ericglau / restclient-web3api

MicroProfile application using Amberdata Web3api for blockchain interaction

Home Page:https://medium.com/@ericglau/interacting-with-blockchain-rest-apis-in-cloud-native-java-70cdbfeb88b1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

MicroProfile application using Amberdata Web3api for blockchain interaction

https://medium.com/@ericglau/interacting-with-blockchain-rest-apis-in-cloud-native-java-70cdbfeb88b1

License:Apache License 2.0


Languages

Language:Java 98.6%Language:HTML 1.4%