try {
$tx = \BlockCypher\Api\TX::decode($hexRawTx, array(), $apiContexts['BTC.main']);
} catch (Exception $ex) {
ResultPrinter::printError("Decode Raw Transaction", "TX", $txHex, $ex);
exit(1);
}
ResultPrinter::printResult("Decode Raw Transaction", "TX", null, $txHex, $tx);
Decode raw transactions without sending propagating them to the network
API called: '/v1/btc/main/txs/decode'