项目作者: ganchix

项目描述 :
Spring boot starter for use Bitcoinj in a Spring way easily.
高级语言: Java
项目地址: git://github.com/ganchix/bitcoinj-spring-boot-starter.git
创建时间: 2018-05-31T14:21:25Z
项目社区:https://github.com/ganchix/bitcoinj-spring-boot-starter

开源协议:MIT License

下载


Spring boot starter BitcoinJ Build Status codecov Maven Central GitHub stars

Spring boot starter for use BitcoinJ Rpc Client in a Spring Boot way.

Table of Contents

Overview

This implementation offers a way to use BitcoinJ Rpc Client like a spring boot starter project.

Getting started

Add dependency

  1. <dependency>
  2. <groupId>io.github.ganchix</groupId>
  3. <artifactId>bitcoinj-spring-boot-starter</artifactId>
  4. <version>0.0.1</version>
  5. </dependency>

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 to check all options available.

Example:

  1. bitcoinj.password=openSesame
  2. bitcoinj.network=REGTEST_NET

And now you can autowired the client:

  1. @Autowired
  2. private BitcoinClient bitcoinClient;

License

Spring boot starter BitcoinJ is licensed under the MIT License. See LICENSE for details.

Copyright (c) 2018 Rafael Ríos Moya