Fetch a checkpoint by its sequence number or digest, or the latest checkpoint if neither is provided.