web3j Spring Boot Starter


Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

org.web3j
Идентификатор

Идентификатор

web3j-spring-boot-starter
Последняя версия

Последняя версия

1.6.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

web3j Spring Boot Starter
web3j Spring Boot Starter
Ссылка на сайт

Ссылка на сайт

https://web3j.io
Система контроля версий

Система контроля версий

https://github.com/web3j/web3j-spring-boot-starter.git

Скачать web3j-spring-boot-starter

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.web3j/web3j-spring-boot-starter/ -->
<dependency>
    <groupId>org.web3j</groupId>
    <artifactId>web3j-spring-boot-starter</artifactId>
    <version>1.6.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.web3j/web3j-spring-boot-starter/
implementation 'org.web3j:web3j-spring-boot-starter:1.6.0'
// https://jarcasting.com/artifacts/org.web3j/web3j-spring-boot-starter/
implementation ("org.web3j:web3j-spring-boot-starter:1.6.0")
'org.web3j:web3j-spring-boot-starter:jar:1.6.0'
<dependency org="org.web3j" name="web3j-spring-boot-starter" rev="1.6.0">
  <artifact name="web3j-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.web3j', module='web3j-spring-boot-starter', version='1.6.0')
)
libraryDependencies += "org.web3j" % "web3j-spring-boot-starter" % "1.6.0"
[org.web3j/web3j-spring-boot-starter "1.6.0"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-autoconfigure jar 1.5.10.RELEASE
org.springframework.boot : spring-boot-actuator jar 1.5.10.RELEASE
org.springframework.boot : spring-boot-configuration-processor jar 1.5.10.RELEASE
org.web3j : core jar 3.3.1
org.springframework.boot : spring-boot-starter jar 1.5.10.RELEASE

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.springframework.boot : spring-boot-test jar 1.5.10.RELEASE
org.springframework.boot : spring-boot-starter-test jar 1.5.10.RELEASE

Модули Проекта

Данный проект не имеет модулей.

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.

org.web3j

web3j

JVM language projects for working with Blockchains

Версии библиотеки

Версия
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
0.1