All Projects → web3j → Web3j Spring Boot Starter

web3j / Web3j Spring Boot Starter

Spring Boot Starter for web3j

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Web3j Spring Boot Starter

Erc20 Rest Service
ERC-20 token standard RESTful service using Spring Boot and web3j
Stars: ✭ 150 (+7.14%)
Mutual labels:  blockchain, ethereum, spring-boot, spring
Spring Boot Jwt
a simple Demo of securing Spring boot rest endpoints using JWT
Stars: ✭ 138 (-1.43%)
Mutual labels:  spring-boot, spring
Status Network Token
Smart Contracts for the Status Contribution Period, along with Genesis and Network Tokens
Stars: ✭ 138 (-1.43%)
Mutual labels:  blockchain, ethereum
Peatiocryptoexchange
An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
Stars: ✭ 141 (+0.71%)
Mutual labels:  blockchain, ethereum
Consensys Academy Notes
A series of notes that were taken during the ConsenSys Academy program.
Stars: ✭ 138 (-1.43%)
Mutual labels:  blockchain, ethereum
Web3.swift
Ethereum Swift API with support for smart contracts, ENS & ERC20
Stars: ✭ 137 (-2.14%)
Mutual labels:  blockchain, ethereum
My Token
📈Track token prices of your favorite exchanges in terminal!
Stars: ✭ 141 (+0.71%)
Mutual labels:  blockchain, ethereum
Alpha Wallet Android
An advanced Ethereum mobile wallet
Stars: ✭ 133 (-5%)
Mutual labels:  blockchain, ethereum
Roncoo Jui Springboot
基于Spring Boot框架,前台框架为JUI的后台框架,功能会继续添加,欢迎大家star和fork!该项目是为了大家更好地运用Spring Boot的功能,进行实战。如果没有使用过Spring Boot,也是一个学习的好项目。可以快速实现一个基于Spring Boot的后台管理系统,前端是基于JUI。
Stars: ✭ 139 (-0.71%)
Mutual labels:  spring-boot, spring
Spring Cloud Cli
Spring Cloud CLI features
Stars: ✭ 139 (-0.71%)
Mutual labels:  spring-boot, spring
Sivalabs Blog Samples Code
Code samples for my blog posts on https://sivalabs.in
Stars: ✭ 139 (-0.71%)
Mutual labels:  spring-boot, spring
Gemini
Model Driven REST framework to automatically generate CRUD APIs
Stars: ✭ 138 (-1.43%)
Mutual labels:  spring-boot, spring
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 1,829 (+1206.43%)
Mutual labels:  spring-boot, spring
Chainlink
node of the decentralized oracle network, bridging on and off-chain computation
Stars: ✭ 2,680 (+1814.29%)
Mutual labels:  blockchain, ethereum
Carmel
The Open Digital Innovation Marketplace
Stars: ✭ 136 (-2.86%)
Mutual labels:  blockchain, ethereum
Eth95
🛠️ A smart contract UI for your Ethereum dapp project
Stars: ✭ 139 (-0.71%)
Mutual labels:  blockchain, ethereum
Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (-0.71%)
Mutual labels:  blockchain, ethereum
Thinking In Spring Boot Samples
小马哥书籍《Spring Boot 编程思想》示例工程
Stars: ✭ 1,725 (+1132.14%)
Mutual labels:  spring-boot, spring
Spring Cloud Config
External configuration (server and client) for Spring Cloud
Stars: ✭ 1,740 (+1142.86%)
Mutual labels:  spring-boot, spring
Spring Cloud Yes
基于Spring Cloud的快速开发脚手架&最佳实践总结
Stars: ✭ 138 (-1.43%)
Mutual labels:  spring-boot, spring

web3j Spring Boot Starter

Build Status

Integrate web3j into your Spring Boot applications via Spring's dependency injection.

Getting started

A sample application is available here

To use, create a new Spring Boot Application, and include the following dependencies:

Maven:

<dependency>
    <groupId>org.web3j</groupId>
    <artifactId>web3j-spring-boot-starter</artifactId>
    <version>4.0.3</version>
</dependency>

Gradle:

compile ('org.web3j:web3j-spring-boot-starter:4.0.3')

Now Spring can inject web3j instances for you where ever you need them:

@Autowired
private Web3j web3j;

No additional configuration is required if you want to connect via HTTP to the default URL http://localhost:8545.

Otherwise simply add the address of the endpoint in your application properties:

# An infura endpoint
web3j.client-address = https://rinkeby.infura.io/

# Or, an IPC endpoing
web3j.client-address = /path/to/file.ipc

Admin clients

If you wish to make use of the personal module methods that are common to both Parity and Geth
to manage accounts, enable the admin client:

web3j.admin-client = true

Then Spring can inject admin clients:

@Autowired
private Admin admin;

HTTP client configuration

Some Ethereum operations take longer than the default HTTP timeout set by the OkHttp3 library used by web3j. To configure those timeouts set the web3j httpTimeoutSeconds property:

web3j.httpTimeoutSeconds = 600  

This sets all three OkHttp3 timeouts: connect, read, and write.

Valid values are any non-negative integer.

A value of '0' means: no timeout.

Note: This is not required for transacting with web3j.

Further information

For further information on web3j, please refer to the web3j home page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].