PHP package for communicating with MultiChain node
- Install
composer require metaverse-systems/multichain-php-client
- Publish config file
php artisan vendor:publish --provider="MetaverseSystems\MultiChain\MultiChainProvider" --tag=config
- To use:
use MetaverseSystems\MultiChain\Facades\MultiChain;
print_r(MultiChain::getinfo());
print_r(MultiChain::liststreams());
// Create a stream call 'mystream', make it an open stream (true)
MultiChain::create("stream", "mystream", true);