Recently, I'm trying coding with Bitcoin like creating raw transaction and filling with some data finally send the raw transcation.
There is a question I don't know how to deal with.
With my own Golang code to create and send raw transcations, the average transcation fee is so much higher than that of the transcation I create with Bitcoin core software. Refer to tx1 and tx2.
Is there some kind of optimization to create transcations?