Laravel Multichain API
, (*1)
Laravel 5.x API wrapper package for the Multichain blockchain. Please read the Credits., (*2)
Features
- Simple Multichain JsonRPC interface.
- Full Multichain API implementation.
Note: Support for Multichain Version 1.0 alpha 26 released on 28 November 2016 should be released early 2017., (*3)
Example usage
$mchain = MultiChain::getInfo();
Installation
Require the package
``` bash
$ composer require lenh/laravel-multichain-api, (*4)
Add service provider class to `providers` section of `app.php` located in `config` directory
'providers' => [
.
.
.
Lenh\Multichain\MultiChainServiceProvider::class,
], (*5)
Add facade to `aliases` section of `app.php` located in `config` directory.
'aliases' => [
.
.
.
'MultiChain' => Lenh\Multichain\Facade\MultiChain::class,
], (*6)
Publish configuration file
``` bash
$ php artisan vendor:publish --tag=config
This will publish the multichain.php configuration file to config directory., (*7)
Configuration
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., (*8)
Usage
Refer to the following documentation:, (*9)
-
Multichain JSON-RPC API commands (http://www.multichain.com/developers/json-rpc-api/), (*10)
-
Kunstmaan PHP library (https://github.com/Kunstmaan/libphp-multichain), (*11)
-
The MultichainClient.php file located in the vendor/kunstmaan/libphp-multichain/src/be/kunstmaan/multichain directory., (*12)
Credits
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)., (*13)
License
The MIT License (MIT). Please see License File for more information., (*14)