PHP code example of jared970 / crypton-shortener

1. Go to this page and download the library: Download jared970/crypton-shortener 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/ */

    

jared970 / crypton-shortener example snippets


// account pubkey = crypton address
$cryptonAddress = '2F2BF157DB859C01FE0CDC2C7F2B5A787ED34EB964559F1E093237EE4707249C';

$util = new Crypton\Utility();
echo $util->ShortenAddress($cryptonAddress);