chaincoin/php-api is a simple wrapper for the Chaincoin client's JSON-RPC API.
Compatible with the latests Chaincoin releases (Tested until 0.16.1)
composer require chaincoin/php-api
You need use at least the version v1.5. (The last stable version is the v2.0.0)
- Use the command
composer require chaincoin/php-api
(You need have the composer installed); - Update the file /vendor/chaincoin/php-api/settings.php with the ip, port, user e pass of your wallet;
- There are 2 examples (
getMasternodesCount
andgetMasternodesList
) in theexamples
folder.
CHC: CdfzimC8ocon2rsStV1pDpcbx19n6K5cYF
BTC: 1ApcfjnaRNhGXE7U2rJK3YyyL1nTwH5sQm