$txSkeleton = $txClient->create($tx);
} catch (Exception $ex) {
ResultPrinter::printError("Created TX BlockCypher Testnet", "TXSkeleton", null, $request, $ex);
exit(1);
}
ResultPrinter::printResult("Created TX BlockCypher Testnet", "TXSkeleton", $txSkeleton->getTx()->getHash(), $request, $txSkeleton);
return $txSkeleton;
Create TX Sample (without sending it)
This sample code demonstrate how you can create a new transaction, as documented here at: http://dev.blockcypher.com/#creating-transactions Destination address is a multisig address. API used: POST /v1/bcy/test/txs/new