Getting Started

Bitcoin4J is a Bitcoin library for the Java Virtual Machine licensed under the terms of the Apache License 2.0. It works will all major JVM languages including Kotlin, Java and Scala.

This library has been built in line with the ideals espoused by BitcoinSV, i.e. massive on-chain scaling, protocol stability and original-bitcoin-protocol implementation.

The source code for the library is available on Github.

All code samples in the subsequent sections will be provided using Kotlin

Installation

Binaries for the Bitcoin4J library are available on Maven Central.

Gradle Dependencies

implementation("org.twostack:bitcoin4j:1.6.3")

Maven Dependencies

<dependency>
  <groupId>org.twostack</groupId>
  <artifactId>bitcoin4j</artifactId>
  <version>1.5.0</version>
</dependency>