Closed luzi41 closed 8 years ago
Why does it fail suddenly ...
/** * retrieves data from blockchain * * @param string $rpcServer * @param string $rpcPort * @param string $rpcUser * @param string $rpcPassword * @param string $txid * * @return array|string */ public static function retrieveData($rpcServer, $rpcPort, $rpcUser, $rpcPassword, $txid) { $data = self::getRpcResult($rpcServer, $rpcPort, $rpcUser, $rpcPassword)->getrawtransaction($txid, 1); if (is_string($data['error'])) { return $data; } else { return hex2bin($data['data'][0]); } }
NO error. Just wrong input...
Why does it fail suddenly ...