PHP code example of waygood / blockchaindata

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

    

waygood / blockchaindata example snippets


'aliases' => [
    ...
    'BlockchainData' => Waygood\BlockchainData\Facades\BlockchainData::class,
    ...
]

$blocks = BlockchainData::getAddress($bitcoin_address[, $limit[, $offset]]);

$blocks = BlockchainData::unspentAddress($bitcoin_address[, $limit[, $offset]]);

$blocks = BlockchainData::balanceAddress($bitcoin_address[, $limit[, $offset]]);

$block = BlockchainData::getBlock($block_hash[, $format]);

$tx = BlockchainData::getTransaction($tx_hash[, $format]);

$tx = BlockchainData::getSubTransaction($tx_index, $n[, $format]);

$chart = BlockchainData::getChart($chart_type);

$blocks = BlockchainData::blocksAtHeight($height);

$blocks = BlockchainData::latestBlock();

$blocks = BlockchainData::unconfirmedTransactions();

$blocks = BlockchainData::dailyBlocks($timestamp);

$blocks = BlockchainData::poolBlocks($pool_name);