3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 06:42:17 +00:00
altcoinj/README.md

49 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2020-02-26 12:45:21 +00:00
[![Apache-2](https://img.shields.io/badge/license-Apache-2.svg)](COPYING)
[![](https://jitpack.io/v/jjos2372/altcoinj.svg)](https://jitpack.io/#jjos2372/altcoinj)
2016-01-08 20:37:00 +00:00
2020-02-26 12:45:21 +00:00
### Welcome to altcoinj
2020-02-26 12:57:59 +00:00
The altcoinj library (forked from [libdohj](https://github.com/dogecoin/libdohj)) is a lightweight
Java library around [bitcoinj](https://bitcoinj.github.io/),
2020-02-26 12:45:21 +00:00
with updated support for Litecoin and Dogecoin.
Pull requests for support for other altcoins would be welcomed.
### Getting started
2020-02-26 12:45:21 +00:00
You should be familiar with [bitcoinj](https://bitcoinj.github.io/) first, as this library simply adds minor
changes to extend bitcoinj. Generally using altcoinj is equivalent to using
bitcoinj, except with different network parameters (reflecting altcoin consensus
in place of Bitcoin).
2020-02-26 13:03:25 +00:00
Be aware however that altcoin blocks have their own class, AltcoinBlock, which
adds support for features such as AuxPoW.
To use altcoinj in your own project, just add the following to your gradle.build file:
2020-02-26 12:45:21 +00:00
```
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.jjos2372:altcoinj:f26e20bb13'
compile 'org.bitcoinj:bitcoinj-core:0.15.6'
}
```
2020-02-26 13:03:25 +00:00
For maven, sbt, and leiningen check [jitpack](https://jitpack.io/#jjos2372/altcoinj).
#### Building from the command line
2020-02-26 12:45:21 +00:00
Simply run on the command line
```
2020-02-26 12:45:21 +00:00
./gradlew jar
```
2020-02-26 12:45:21 +00:00
The outputs are under the `build` directory.
#### Building from an IDE
2020-02-26 12:45:21 +00:00
Alternatively, just import the project on your preferred IDE as a *gradle* project.