Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Higher fee: TX rejected: transaction 0f076...00c8 has insufficient priority #1992

Open
lenhatquang97 opened this issue Jun 12, 2023 · 0 comments

Comments

@lenhatquang97
Copy link

lenhatquang97 commented Jun 12, 2023

Situation

I have created custom transaction with embedding file like the way Ordinals works for my thesis. However, transaction fee is very high so that I need a lot of money in testnet for confirmation. How can I calculate the fee in an correct way and how can I decrease the fee in btcd?

Example

A transaction with 339 KB with Ordinals costs 85750 satoshi, while the fee in btcd can be up 494000 satoshis (with the formula feeRate * tx.SerializedSize() (feeRate is taken from EstimateFee API and multiply with 100000 to convert from BTC/KB to satoshi/byte).

Error

-26: TX rejected: transaction 0f076c7a0fa6e300596041b1f85df6e707630b9141445fc4e77f9915b52e00c8 has insufficient priority (9924.459770114943 <= 5.76e+07)

@lenhatquang97 lenhatquang97 changed the title Higher fee Higher fee: TX rejected: transaction 0f076...00c8 has insufficient priority Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant