add flushed transaction id and the api to get it.