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
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