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.

C/C++

#include "coinspark.h"

Java

/* add the CoinSpark classes to your project */

Javascript

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

PHP

require_once 'coinspark.php'

Python

from coinspark import *

Ruby

require 'coinspark.rb'