emesik / cardano-python

Python module for handling Cardano cryptocurrency
BSD 3-Clause "New" or "Revised" License
113 stars 17 forks source link

Adjust transaction fee #16

Open zlac116 opened 2 years ago

zlac116 commented 2 years ago

Using this python api, I know that you can estimate the fee (using the estimate_fee function), for a given txn but can the fee be adjusted (increased) for the txn, in order to reduce the time in the mempool and effectively speed up the txn? Thanks

emesik commented 2 years ago

This is a very good question. The backend API doesn't provide a way to modify the fee but I have no idea whether the protocol does. I think https://cardano.stackexchange.com would be the best place to ask that question.

bmasterc commented 2 years ago

The protocol doesn't allow for this. Transactions are supposed to be processed in order that they are received, unlike other blockchains.

emesik commented 2 years ago

@bmasterc I think the order of transaction arrival is unverifiable by other nodes, hence it cannot be a part of consensus. Also, the multiple levels of fee contradict your above claim. There's certainly a fee market but not free market like in Bitcoin. It's regulated down to 4 price levels in order to provide uniformity. Privacy first.

However, the question of fee estimation still stands.