primal100 / pybitcointools

Simple, common-sense Bitcoin-themed Python ECC library
Other
335 stars 151 forks source link

Transaction fee automatic calculation #15

Closed Gujjar95 closed 6 years ago

Gujjar95 commented 6 years ago

i am looking to implement automatic suitable fee for a transaction. The main structure will be below where user can still use old method and also new mktx method or we should create new method.Lets say and i will implement.

example;
createRawTransaction(inputs, outputs, fee = standard, changeaddress = changeaddress, segwit = False): if standard : we will findout from source fee per byte else : given fee will be satoshi per byte

i think we can make autodetect segwit for mktx method on the basis of output addresses