PHP code example of blackpanda / tronscan

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

    

blackpanda / tronscan example snippets


<?PHP
	
    $tronScan = new BlackPanda\TronScan\TronScan();
    $address = 'Your Tron Network Address';
    
    /*
    * get Address information
    */
    $tronScan->getAccount($address);

    /*
    * get transactions of specific address
    */
    $tronScan->getAccountTransactions($address);
    
    ...