Adding service endpoints to get and set longest chains.