contract details by id