{"id":15924088,"url":"https://github.com/ericglau/restclient-web3api","last_synced_at":"2025-04-03T12:45:59.851Z","repository":{"id":116635200,"uuid":"249346331","full_name":"ericglau/restclient-web3api","owner":"ericglau","description":"MicroProfile application using Amberdata Web3api for blockchain interaction","archived":false,"fork":false,"pushed_at":"2020-03-28T04:29:15.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T02:15:42.838Z","etag":null,"topics":["amberdata","microprofile","open-liberty","rest-api"],"latest_commit_sha":null,"homepage":"https://medium.com/@ericglau/interacting-with-blockchain-rest-apis-in-cloud-native-java-70cdbfeb88b1","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericglau.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-23T05:47:42.000Z","updated_at":"2020-10-12T08:08:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"78737402-b977-4c41-ba48-841914c0f58e","html_url":"https://github.com/ericglau/restclient-web3api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Frestclient-web3api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Frestclient-web3api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Frestclient-web3api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Frestclient-web3api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericglau","download_url":"https://codeload.github.com/ericglau/restclient-web3api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247005410,"owners_count":20868019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amberdata","microprofile","open-liberty","rest-api"],"created_at":"2024-10-06T21:20:20.304Z","updated_at":"2025-04-03T12:45:59.833Z","avatar_url":"https://github.com/ericglau.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroProfile application using Web3api for blockchain interaction\n\n## Introduction\n\nThis project provides an example of how a cloud-native Java application can easily call a REST API through generated Java interfaces.  \n\nThe scenario demonstrates using [Amberdata's Web3api](https://docs.amberdata.io/reference#reference-getting-started) to interact with the Ethereum public blockchain to predict gas prices for transactions.\n\n### Running the project\n\nRun 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.\n\n```\nmvn liberty:dev\n```\n\nOpen your browser at the following URL to invoke a servlet which accesses Web3api to return predicted gas prices for Ethereum.\n\nhttp://localhost:9080/gas\n\n### How it was built\n\n- Project layout using [MicroProfile Starter](https://marketplace.visualstudio.com/items?itemName=MicroProfile-Community.mp-starter-vscode-ext)\n- Java [interfaces](src/main/java/com/example/demo/api) and [models](src/main/java/com/example/demo/models) generated using this chain: [Web3api REST API for gas predictions](https://docs.amberdata.io/reference#get-gas-predictions) -\u003e [OpenAPI document](https://app.swaggerhub.com/apis/ericglau/web3api-gas-predictions/1.0.0) -\u003e [MicroProfile Rest Client Generator](https://marketplace.visualstudio.com/items?itemName=MicroProfile-Community.mp-rest-client-generator-vscode-ext)\n- Simple [servlet](src/main/java/com/example/demo/GasServlet.java) making use of the generated REST client through [dependency injection](https://openliberty.io/guides/microprofile-rest-client.html), allowing you to simply call it as a Java interface and accessing the Java models directly.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericglau%2Frestclient-web3api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericglau%2Frestclient-web3api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericglau%2Frestclient-web3api/lists"}