CoinSpark source libraries for C/C++, Go, Java, Javascript, PHP, Python and Ruby.

The CoinSpark libraries help you integrate support for the CoinSpark protocol into your wallet, or any other tool or service. The libraries for each language are functionally identical, and use as similar calling conventions as possible, given the constraints imposed by each language. The libraries also include extensive tests to verify that they behave identically for all inputs, across all languages.

You can browse or download the libraries for C/C++, Java, Javascript, PHP, Python, Ruby or Go on Github.

Using a CoinSpark library

All of these examples assume the CoinSpark library is in the same directory as the file which is using it.


#include "coinspark.h"


/* add the CoinSpark classes to your project */


<script src="coinspark.js"></script>


require_once 'coinspark.php'


from coinspark import *


require 'coinspark.rb'