Skip to content
java library for chain.com bitcoin api
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/net/richardbondi/chainapi
test
.gitignore refactored project structure Aug 24, 2014
LICENSE.md
README.md
chain.pem.txt

README.md

A java library for accessing the bitcoin blockchain via the chain API.

Dependencies

json-simple

commons-codec

Example usage

import net.richardbondi.chainapi.ChainAPI;
import net.richardbondi.chainapi.transaction.Transaction;
ChainAPI chain = new ChainAPI("YOUR-API-KEY", "YOUR-API-SECRET", true); // true for testnet, false or ommit for mainnet
List<Transaction> transactions = chain.getAddressTransactions("YOUR-ADDRESS");
for(Transaction transaction: transactions) {
    System.out.println("Transaction amount BTC: "+ChainAPI.BTCvalue(transaction.getAmount()));
}

for additional examples see the test directory.

The tests require junit

The testSendTransaction test requires bitcoin-json-rpc-client and the bitcoin core server running.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.