require __DIR__ . '/../bootstrap.php';
$txClient = new \BlockCypher\Client\TXClient($apiContexts['BTC.main']);
try {
$transaction = $txClient->get('f854aebae95150b379cc1187d848d58225f3c4157fe992bcd166f58bd5063449');
} catch (Exception $ex) {
ResultPrinter::printError("Get TX", "TX", 'f854aebae95150b379cc1187d848d58225f3c4157fe992bcd166f58bd5063449', null, $ex);
exit(1);
}
ResultPrinter::printResult("Get TX", "TX", $transaction->getHash(), null, $transaction);
return $transaction;
Get Transaction
The TX resource allows you to retrieve details about a transaction.
API called: '/v1/btc/main/txs/f854aebae...bd5063449'