gustavorglima / laravel-multichain
Multichain Wrapper for Laravel 5
Package info
github.com/gustavorglima/laravel-multichain
pkg:composer/gustavorglima/laravel-multichain
1.0.1
2018-03-21 15:50 UTC
Requires
This package is not auto-updated.
Last update: 2026-03-07 03:49:14 UTC
README
Multichain Wrapper for Laravel 5
Installation
First of all you need to require the package:
composer require gustavorglima/laravel-multichain
Now open config/app.php to add the provider and alias:
'providers' => [
...
GustavoLima\Multichain\MultiChainServiceProvider::class,
]
'aliases' => [
...
'MultiChain' => GustavoLima\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.