コード例 #1
0
ファイル: BlockRepository.php プロジェクト: CryptArc/xchain
 public function findLatestBlockHeight()
 {
     $block = Block::orderBy('height', 'desc')->limit(1)->first();
     if (!$block) {
         return null;
     }
     return $block['height'];
 }