$hexRawTx = require 'CreateTransactionWithThirdPartySoftware.php';
$txHex = new \BlockCypher\Api\TXHex();
$txHex->setTx($hexRawTx);
try {
$tx = \BlockCypher\Api\TX::push($hexRawTx, array(), $apiContexts['BTC.main']);
} catch (\Exception $ex) {
ResultPrinter::printError("Push Raw Transaction", "TX", null, $txHex, $ex);
exit(1);
}
ResultPrinter::printResult("Push Raw Transaction", "TX", null, $txHex, $tx);
Push Raw Transaction to the Network
API called: '/v1/btc/main/txs/push'