generate state createtime locally, and send it to the server.