public function findLatestBlockHeight() { $block = Block::orderBy('height', 'desc')->limit(1)->first(); if (!$block) { return null; } return $block['height']; }