Home

Awesome

BeamClient java library

A Java library for the Beam cryptocurrency Wallet API.

Building

Usage

Include Maven dependency (update version as necessary):

<dependency>
            <groupId>ch.bitmate</groupId>
            <artifactId>beamclient</artifactId>
            <version>1.1-SNAPSHOT</version>
</dependency>

Example

  1. Cancel transactions stuck In Progress
// Setup beam client
BeamClient beamClient = new BeamClient("localhost", 10001);
// Get list of transactions in progress
List<TransactionStatus> transactions = beamClient.getTransactions(TransactionStatusType.IN_PROGRESS);
// Cancel each transaction
transactions.forEach(transaction -> beamClient.cancelTransaction(transaction.getTxId()));

To-do

Dependencies