{"id":21151164,"url":"https://github.com/web3j/sample-project-gradle","last_synced_at":"2025-04-06T02:09:51.849Z","repository":{"id":41262823,"uuid":"107018193","full_name":"web3j/sample-project-gradle","owner":"web3j","description":"Sample web3j project using Gradle","archived":false,"fork":false,"pushed_at":"2022-08-04T12:28:36.000Z","size":134,"stargazers_count":271,"open_issues_count":15,"forks_count":154,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-30T01:09:03.974Z","etag":null,"topics":["blockchain","ethereum","gradle","java","web3j"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web3j.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-15T14:12:48.000Z","updated_at":"2025-03-13T07:29:13.000Z","dependencies_parsed_at":"2022-08-02T13:16:48.068Z","dependency_job_id":null,"html_url":"https://github.com/web3j/sample-project-gradle","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/web3j%2Fsample-project-gradle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3j%2Fsample-project-gradle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3j%2Fsample-project-gradle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3j%2Fsample-project-gradle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3j","download_url":"https://codeload.github.com/web3j/sample-project-gradle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423515,"owners_count":20936626,"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":["blockchain","ethereum","gradle","java","web3j"],"created_at":"2024-11-20T10:14:09.543Z","updated_at":"2025-04-06T02:09:51.830Z","avatar_url":"https://github.com/web3j.png","language":"Java","readme":"# web3j Sample Project\n\nThis project provides a very simple starter application for working with web3j and the test \nEthereum network (testnet) known as Rinkeby.\n\nThe demo deploys a *hello world* smart contract which contains a greeting message. The current \ngreeting message can be read and modified in the smart contract.  \n\nIn order to run this demo, three pieces of information are required:\n\n1. Ethereum client (or node) endpoint. The simplest thing to do is \n[request a free access token](https://infura.io/register) from Infura.\n1. A wallet file. This can be generated using the [Epirus CLI](https://docs.epirus.io/sdk/cli/). \n1. Some Ether. This can be requested from the [Rinkeby Faucet](https://www.rinkeby.io/#faucet).\n\nOnce these details have been added to the main Application class, you'll be good to go.\n\n\n## Functionality\n\nThis application demonstrates a number of core features of web3j and Ethereum:\n\n- Connecting to a node on the Ethereum network\n- Loading an Ethereum wallet file\n- Sending Ether from one address to another\n- Deploying a smart contract to the network\n- Reading a value from the deployed smart contract\n- Updating a value in the deployed smart contract\n- Viewing an event logged by the smart contract\n\n\n## Background\n\nThis application has purposefully been kept as simple as possible with the aim of demonstrating \nhow to deploy and work with a smart contract on the decentralised Ethereum network.\n\nIf you require further background information about the above configuration items for the project\nyou can refer to the below.\n\nFor a more comprehensive overview, I recommend you read the \n[Java Magazine Article](https://web3j.io/articles/web3j%20article%20-%20Java%20Magazine%20JanuaryFebruary%202017.pdf), watch \nthe \n[YouTube](https://youtube.com/watch?v=ea3miXs_P6Y) talk, and read all of the \n[documentation](https://docs.web3j.io).\n\n### Smart contracts\n\nThe contained smart contract is based on the \n[Greeter contract example](https://www.ethereum.org/greeter), with the addition that the value \nstored in the Greeter can be modified.\n\nThe associated Java smart contract wrapper is named Greeter.\n\nFor more background on smart contracts, refer to the \n[smart contracts](https://docs.web3j.io/smart_contracts/) section of the docs.\n\n\n### Infura\n\nIf you don't want to sign up to Infura, and would like to run a node yourself, there are \ninstructions in the [getting started](https://docs.web3j.io/getting_started/#start-a-client) \nsection of the docs.\n\n### Testnets\n\nFor more information on the different Ethereum test networks (or testnets), refer \nto the \n[testnet overview](https://docs.web3j.io/transactions/#ethereum-testnets) in the docs.\n\n### Ether\n\nFor background on Ether, refer to the transactions \n[overview](https://docs.web3j.io/transactions/#transactions) section of the docs.\n\n### Wallets and transaction signing\n\nFor a more technical overview of working with wallet files, refer to the \n[Offline transaction signing](https://docs.web3j.io/transactions/#offline-transaction-signing)\nsection of the docs.\n \n\n## Viewing requests\n\nA logback configuration is included in the project dependencies allowing the logging of protocol \nmessages if required. To enable, simply change the following line in the [logback configuration](https://github.com/web3j/sample-project-maven/blob/master/src/main/resources/logback.xml)\nto read:\n\n```xml\n\u003clogger name=\"org.web3j.protocol\" level=\"DEBUG\"/\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3j%2Fsample-project-gradle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3j%2Fsample-project-gradle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3j%2Fsample-project-gradle/lists"}