Author

Topic: Error message in Bitcoin core (Read 126 times)

jr. member
Activity: 46
Merit: 1
January 23, 2021, 08:31:16 AM
#5
how do I determine the optimal change I should use when creating the transaction?
Calculate the fees that you require.
- Assuming Bech32 (bc1...) transaction
A typical bech32 transaction should be roughly 110 vbytes, assuming 1 input and 1 output. Add the size of your OP_return message as well, that'll be roughly 190vbytes, give or take. Your fees should not be below 190 satoshi, if you want a confirmation anytime soon you would probably be looking at ~ 2290vbytes , deduct the transaction fees from the inputs and you would be left with the change that you should have. If it's below 294 satoshis, you should probably just omit it completely.

That being said, please do not craft the raw transaction yourself if you're not familiar with what you're doing. If you want, using a utility like Coinb.in to craft it and validate using your Bitcoin Core client would probably be more suitable. If you're just looking to experiment with it, either use regtest or Testnet.

already figured it out, thanks.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
January 23, 2021, 07:59:01 AM
#4
how do I determine the optimal change I should use when creating the transaction?
Calculate the fees that you require.
- Assuming Bech32 (bc1...) transaction
A typical bech32 transaction should be roughly 110 vbytes, assuming 1 input and 1 output. Add the size of your OP_return message as well, that'll be roughly 190vbytes, give or take. Your fees should not be below 190 satoshi, if you want a confirmation anytime soon you would probably be looking at ~ 2290vbytes , deduct the transaction fees from the inputs and you would be left with the change that you should have. If it's below 294 satoshis, you should probably just omit it completely.

That being said, please do not craft the raw transaction yourself if you're not familiar with what you're doing. If you want, using a utility like Coinb.in to craft it and validate using your Bitcoin Core client would probably be more suitable. If you're just looking to experiment with it, either use regtest or Testnet.
jr. member
Activity: 46
Merit: 1
January 23, 2021, 07:07:48 AM
#3
Is one of your outputs is below 546 or 294 satoshis. If that's the case, you have to omit that output or use less funds as your fees.

how do I determine the optimal change I should use when creating the transaction?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
January 23, 2021, 07:06:36 AM
#2
Is one of your outputs is below 546 or 294 satoshis. If that's the case, you have to omit that output or use less funds as your fees.
jr. member
Activity: 46
Merit: 1
January 23, 2021, 06:59:51 AM
#1
Hello, I am following this guide https://medium.com/blockchainedu/how-to-write-stuff-on-the-blockchain-bdae1704f24d and everything works fine up until the last step, where I get the error "dust (code -26)" instead of the transaction ID.

What am I doing wrong?
Jump to: