require __DIR__ . '/../bootstrap.php';
use BlockCypher\Auth\SimpleTokenCredential;
use BlockCypher\Rest\ApiContext;
$apiContext = ApiContext::create(
'main', 'btc', 'v1',
new SimpleTokenCredential('c0afcccdde5081d6429de37d16166ead'),
array('log.LogEnabled' => true, 'log.FileName' => 'BlockCypher.log', 'log.LogLevel' => 'DEBUG')
);
$blockList = array('5', '6', '7');
$blocks = \BlockCypher\Api\Block::getMultiple($blockList, array(), $apiContexts['BTC.main']);
ResultPrinter::printResult("Get Multiple Blocks", "Blocks", '5, 6, 7', null, $blocks);
Batching blocks 5, 6, and 7 Run on console: php -f .\sample\introduction\Batching.php