Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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.

About

java library for chain.com bitcoin api

Resources

License

Packages

No packages published

Languages