Open ShookLyngs opened 1 month ago
- For the indirect cause 3 mentioned above, we could add an option to allow treating the change value as fee if the value is smaller than the minUtxoSatoshi, instead of always generating a change output for that. Related issue: Don't create change output if not worthy #183.
546 <= changeValue < minUtxoSatoshi
create the change output directly with changeValue
.
changeValue < 546
The change could be treated as a fee, as it may not be economically viable to create a change output for such a small amount.
=> https://github.com/ckb-cell/rgbpp-sdk/issues/183
Issue
The reasons triggering the
INSUFFICIENT_UTXO
error are clear:However, it's hard to prompt a specific reason that causes the error because there could be indirect causes:
value < minUtxoSatoshi
) of an address will be excluded as they're considered dustckbVirtualResult.needPaymasterCell == true
, there's an extra payment to the paymasterPossible Resolutions