require __DIR__ . '/../bootstrap.php';
$txClient = new \BlockCypher\Client\TXClient($apiContexts['BTC.main']);
try {
$params = array(
'includeConfidence' => 'true'
);
$transaction = $txClient->get('f854aebae95150b379cc1187d848d58225f3c4157fe992bcd166f58bd5063449', $params);
} 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 with confidence factor
The TX resource allows you to retrieve details about a transaction including confidence factor.
API called: '/v1/btc/main/txs/f854aebae...bd5063449'