metaverse-systems/multichain-php-client

PHP package for communicating with MultiChain node

v1.0.0 2022-12-18 07:28 UTC

This package is auto-updated.

Last update: 2024-05-25 18:41:53 UTC


README

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);