Package Data | |
---|---|
Maintainer Username: | LenH |
Maintainer Contact: | leonard.harley@gmail.com (Leonard Harley) |
Package Create Date: | 2016-12-10 |
Package Last Update: | 2017-07-25 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-17 03:06:11 |
Package Statistics | |
---|---|
Total Downloads: | 181 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 1 |
Laravel 5.x API wrapper package for the Multichain blockchain. Please read the Credits.
Note: Support for Multichain Version 1.0 alpha 26 released on 28 November 2016 should be released early 2017.
$mchain = MultiChain::getInfo();
Require the package
$ composer require lenh/laravel-multichain-api
Add service provider class to providers
section of app.php
located in config
directory
'providers' => [
.
.
.
Lenh\Multichain\MultiChainServiceProvider::class,
]
Add facade to aliases
section of app.php
located in config
directory.
'aliases' => [
.
.
.
'MultiChain' => Lenh\Multichain\Facade\MultiChain::class,
]
Publish configuration file
$ php artisan vendor:publish --tag=config
This will publish the multichain.php
configuration file to config
directory.
Edit multichain.php
loated in the config
directory providing the required credentials as per the multichain.conf
file on the node you wish to access.
Refer to the following documentation:
Multichain JSON-RPC API commands (http://www.multichain.com/developers/json-rpc-api/)
Kunstmaan PHP library (https://github.com/Kunstmaan/libphp-multichain)
The MultichainClient.php
file located in the vendor/kunstmaan/libphp-multichain/src/be/kunstmaan/multichain
directory.
I take no credit for this work - the real credits go to the folks Kunstmaan Labs who wrote the original php library (https://github.com/Kunstmaan/libphp-multichain).
The MIT License (MIT). Please see License File for more information.