add transaction id in header (txId)

#### Reviewers
@hmunfru or @alberts-tid 

#### Description
in SDC client, add transaction id to header;
remove duplicated code

#### Test
tested locally