https://github.com/ganchix/bitcoinj-spring-boot-starter
Spring boot starter for use Bitcoinj in a Spring way easily.
https://github.com/ganchix/bitcoinj-spring-boot-starter
bitcoin bitcoinj java java-8 spring spring-boot
Last synced: about 1 year ago
JSON representation
Spring boot starter for use Bitcoinj in a Spring way easily.
- Host: GitHub
- URL: https://github.com/ganchix/bitcoinj-spring-boot-starter
- Owner: ganchix
- License: mit
- Created: 2018-05-31T14:21:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T09:59:16.000Z (almost 8 years ago)
- Last Synced: 2025-03-21T14:08:52.968Z (over 1 year ago)
- Topics: bitcoin, bitcoinj, java, java-8, spring, spring-boot
- Language: Java
- Size: 58.6 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Spring boot starter BitcoinJ [](https://travis-ci.org/ganchix/bitcoinj-spring-boot-starter) [](https://codecov.io/gh/ganchix/bitcoinj-spring-boot-starter) [](https://maven-badges.herokuapp.com/maven-central/io.github.ganchix/bitcoinj-spring-boot-parent) [](https://github.com/ganchix/bitcoinj-spring-boot-starter)
Spring boot starter for use [BitcoinJ Rpc Client](https://github.com/ConsensusJ/consensusj) in a Spring Boot way.
# Table of Contents
- [Overview](#overview)
- [Getting started](#getting-started)
- [License](#license)
### Overview
This implementation offers a way to use [BitcoinJ Rpc Client](https://github.com/ConsensusJ/consensusj) like a spring boot starter project.
### Getting started
#### Add dependency
```xml
io.github.ganchix
bitcoinj-spring-boot-starter
0.0.1
```
#### Code example
Start your bitcoin node, create your spring boot project and add the dependency, configure in the properties file your database,
you can see [BitcoinJProperties](https://github.com/ganchix/bitcoinj-spring-boot-starter/blob/master/bitcoinj-spring-boot-autoconfigure/src/main/java/io/github/ganchix/bitcoinj/properties/BitcoinJProperties.java) to check all options available.
Example:
```properties
bitcoinj.password=openSesame
bitcoinj.network=REGTEST_NET
```
And now you can autowired the client:
```java
@Autowired
private BitcoinClient bitcoinClient;
```
### License
Spring boot starter BitcoinJ is licensed under the MIT License. See [LICENSE](LICENSE.md) for details.
Copyright (c) 2018 Rafael Ríos Moya