suscitar / laravel-multichain
Multichain Wrapper for Laravel 5
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.1.2
2018-06-20 13:09 UTC
Requires
- illuminate/support: ^5.3
- suscitar/libphp-multichain: ^1.1
This package is auto-updated.
Last update: 2021-05-01 00:09:03 UTC
README
Multichain Wrapper for Laravel 5
Installation
First of all you need to require the package:
composer require suscitar/laravel-multichain
Now open config/app.php
to add the provider and alias:
'providers' => [
...
Suscitar\Multichain\MultiChainServiceProvider::class,
]
'aliases' => [
...
'MultiChain' => Suscitar\Multichain\Facade\MultiChain::class,
]
Configuration
Add the lines bellow on your .env
file and edit with your credentials:
# MULTICHAIN
MULTICHAIN_RPC_HOST=127.0.0.1
MULTICHAIN_RPC_PORT=7358
MULTICHAIN_RPC_USERNAME=
MULTICHAIN_RPC_PASSWORD=
Test
$multichain = MultiChain::getInfo();
Documentation
- Multichain JSON-RPC API commands (http://www.multichain.com/developers/json-rpc-api/)
- Kunstmaan PHP library (https://github.com/Kunstmaan/libphp-multichain)
Credits
All credits for Kunstmaan Labs who wrote the original php library.