You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thomas Kerin edited this page Apr 2, 2017
·
4 revisions
Please add Bitcoin transaction creation and formatting tips and tricks here!
Keep the number of significant bits of change value the same as the significant bits of payment values
Timelock-transaction-to-current-height + 1
When picking UTXO, prefer UTXO that are already related to the ones currently selected (i.e. sent to same address)
If the change amount is less than dust limits + fees it would cost to spend the change amount, avoid change amount and send as fees to miners?
Outputs are ~45 bytes, inputs are ~160+ bytes - wallets should check change amount is more than feeRateinputSizeMOAR, otherwise it's creating outputs that are not economical to spend, or might become uneconomical in the near future.
Try to set the change amount least significant digits to zero to make it less obvious to detect as change