A library for working with Bitcoin
Find a file
2019-02-25 08:27:31 +01:00
.github Add simple contributing guidelines. 2018-05-18 16:21:04 +02:00
core build.gradle: Make protobuf-gradle-plugin use protoc from the repository. 2019-02-23 23:27:48 +01:00
designdocs Design doc for contexts 2015-03-21 17:23:21 +01:00
examples Update jopt-simple to 5.0.4. 2019-02-15 04:03:39 +01:00
misc Higher res logo PNG 2015-06-03 12:19:43 +02:00
tools Wallet: In toString(), add a flag for including the lookahead keys into the dump. 2019-02-19 12:20:04 +01:00
wallettemplate Update Guava to 27.0.1-android. 2019-02-15 03:34:11 +01:00
.gitattributes Add a logo. 2013-03-01 13:59:48 +01:00
.gitignore Git-ignore Gradle wrapper files. 2018-07-31 10:37:39 +02:00
.travis.yml build.gradle: Make protobuf-gradle-plugin use protoc from the repository. 2019-02-23 23:27:48 +01:00
AUTHORS Update AUTHORS from git. 2019-02-15 04:15:48 +01:00
build.gradle Update protobuf-gradle-plugin to 0.8.6. 2019-02-14 23:03:24 +01:00
COPYING Initial checkin of BitCoinJ 2011-03-07 10:17:10 +00:00
README.md README.md: Add instructions for using Jitpack-powered SNAPSHOT builds. 2019-02-25 08:27:31 +01:00
settings.gradle Migrate from Maven to Gradle 3.4 for building. 2018-05-01 16:49:30 +02:00

Build Status Coverage Status

Visit our IRC channel

Welcome to bitcoinj

The bitcoinj library is a Java implementation of the Bitcoin protocol, which allows it to maintain a wallet and send/receive transactions without needing a local copy of Bitcoin Core. It comes with full documentation and some example apps showing how to use it.

Technologies

  • Java 7 for the core modules, Java 8 for everything else
  • Gradle 3.4+ - for building the project
  • Google Protocol Buffers - for use with serialization and hardware communications

Getting started

To get started, it is best to have the latest JDK and Gradle installed. The HEAD of the master branch contains the latest development code and various production releases are provided on feature branches.

Building from the command line

To perform a full build use

gradle clean build

You can also run

gradle javadoc

to generate the JavaDocs.

The outputs are under the build directory.

Building from an IDE

Alternatively, just import the project using your IDE. IntelliJ has Gradle integration built-in and has a free Community Edition. Simply use File | New | Project from Existing Sources and locate the build.gradle in the root of the cloned project source tree.

Example applications

These are found in the examples module.

Where next?

Now you are ready to follow the tutorial.

Testing a SNAPSHOT build

Building apps with official releases of bitcoinj is covered in the tutorial.

If you want to develop or test your app with a Jitpack-powered build of the latest master or release-0.15 branch of bitcoinj follow the dynamically-generated instructions for that branch by following the correct link.