public function getBlockByHeight() { $height = $this->bootstrap->route['height']; $paycoin = new PaycoinDb(); $block = $paycoin->getBlockByHeight($height); $block['transactions'] = $paycoin->getTransactionsInBlock($block['height']); $block['transactionsOut'] = $paycoin->getTransactionsOut($block['height']); $block['raw'] = unserialize($block['raw']); $this->outputJsonResponse($block); }