Skip to content

Java library for the Beam cryptocurrency Wallet API

Notifications You must be signed in to change notification settings

beamfan/java-beam-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BeamClient java library

A Java library for the Beam cryptocurrency Wallet API.

Building

  • mvn clean install
  • Note: For the tests to pass, you must be running an instance of Beam's wallet-api on localhost, port 10001. To skip tests. Add -DskipTests to the command line.

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

  • create_address
  • validate_address
  • tx_send
  • tx_status
  • tx_split
  • wallet_status
  • get_utxo
  • tx_list
  • tx_cancel

Dependencies

  • Gson
  • OkHttp
  • JUnit (for testing)

About

Java library for the Beam cryptocurrency Wallet API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages