PHP code example of bzzhh / tzkt-php-client

1. Go to this page and download the library: Download bzzhh/tzkt-php-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bzzhh / tzkt-php-client example snippets




$Protocols = new \Tzkt\Api\ProtocolsApi(\Tzkt\get_client() /*, (new \Tzkt\Configuration())->setDebug(true) */);
$proto = $Protocols->protocolsGetCurrent();

$proto->getHash();
// "PtTALLiNtPec7mE7yY4m3k26J8Qukef3E3ehzhfXgFZKGtDdAXu"