CreateRawTransaction and SendRawTransaction how to specify transaction fee?
The transaction fee is specified by the difference of the sum of inputs and the sum of outputs, i.e.

transaction fee = Σ(inputs) - Σ(outputs)


In other words, you set a transaction fee by sending more than you assign to the recipient.