{"id":21151159,"url":"https://github.com/web3j/web3j-spring-boot-starter","last_synced_at":"2025-04-05T04:13:03.340Z","repository":{"id":39617156,"uuid":"82434907","full_name":"web3j/web3j-spring-boot-starter","owner":"web3j","description":"Spring Boot Starter for web3j","archived":false,"fork":false,"pushed_at":"2024-04-09T08:13:14.000Z","size":198,"stargazers_count":239,"open_issues_count":15,"forks_count":89,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-29T03:08:15.388Z","etag":null,"topics":["blockchain","ethereum","java","spring","spring-boot","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-19T04:25:27.000Z","updated_at":"2025-03-19T16:54:27.000Z","dependencies_parsed_at":"2024-11-20T10:59:20.692Z","dependency_job_id":"e32f33c0-d8d9-415a-8b24-7358cf1439a5","html_url":"https://github.com/web3j/web3j-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3j%2Fweb3j-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3j%2Fweb3j-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3j%2Fweb3j-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3j%2Fweb3j-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3j","download_url":"https://codeload.github.com/web3j/web3j-spring-boot-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"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","java","spring","spring-boot","web3j"],"created_at":"2024-11-20T10:14:07.796Z","updated_at":"2025-04-05T04:13:03.316Z","avatar_url":"https://github.com/web3j.png","language":"Java","readme":"# web3j Spring Boot Starter\n\n[![Build Status](https://travis-ci.org/web3j/web3j-spring-boot-starter.svg?branch=master)](https://travis-ci.org/web3j/web3j-spring-boot-starter)\n\nIntegrate web3j into your Spring Boot applications via Spring's dependency injection.\n\n\n## Getting started\n\nA sample application is available [here](https://github.com/web3j/examples/tree/master/spring-boot)\n\nTo use, create a new [Spring Boot Application](https://spring.io/guides/gs/spring-boot/), and \ninclude the following dependencies:\n\nMaven:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.web3j\u003c/groupId\u003e\n    \u003cartifactId\u003eweb3j-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e4.0.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle:\n\n```groovy\ncompile ('org.web3j:web3j-spring-boot-starter:4.0.3')\n```\n\nNow Spring can inject web3j instances for you where ever you need them:\n\n```java\n@Autowired\nprivate Web3j web3j;\n```\n\nNo additional configuration is required if you want to connect via HTTP to the default URL \nhttp://localhost:8545.\n\nOtherwise simply add the address of the endpoint in your application properties:\n\n```properties\n# An infura endpoint\nweb3j.client-address = https://rinkeby.infura.io/\n\n# Or, an IPC endpoing\nweb3j.client-address = /path/to/file.ipc\n```\n\n\n## Admin clients\n\nIf you wish to make use of the personal module methods that are common to both\n[Parity](https://github.com/ethcore/parity/wiki/JSONRPC-personal-module) and \n[Geth](https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal)  \nto manage accounts, enable the admin client:\n\n```properties\nweb3j.admin-client = true\n```\n\nThen Spring can inject admin clients:\n\n ```java\n @Autowired\n private Admin admin;\n ```\n\n\n## HTTP client configuration\n\nSome Ethereum operations take longer than the default HTTP timeout set by the `OkHttp3` library\nused by `web3j`. To configure those timeouts set the web3j `httpTimeoutSeconds` property:\n\n```properties\nweb3j.httpTimeoutSeconds = 600  \n```\n\nThis sets all three OkHttp3 timeouts: `connect`, `read`, and `write`.  \n\nValid values are any non-negative integer.\n\nA value of '`0`' means: no timeout.  \n\n\n**Note**: This is not required for transacting with web3j.  \n\n\n## Further information\n\nFor further information on web3j, please refer to the [web3j home page](https://web3j.io).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3j%2Fweb3j-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3j%2Fweb3j-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3j%2Fweb3j-spring-boot-starter/lists"}