Constructing a transaction