-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Description
When sending an RGB asset, if the UTXO holding the asset doesn't have enough BTC to cover the witness output amount plus fees, the transaction fails with "Insufficient bitcoin funds" even when there's plenty of BTC available on other colorable UTXOs.
In this scenario, all BTC in the wallet was received via RGB transfers - no standalone BTC transactions were made to the wallet. This means all UTXOs are on the external (colorable) keychain, with no internal keychain UTXOs.
Steps to Reproduce
- Create a wallet and receive an RGB asset with some BTC (e.g., 40,000 sats)
- Receive another RGB asset (same or different) with some BTC (e.g., 60,000 sats)
- Attempt to send one of the RGB assets with a witness amount larger than the BTC on that asset's UTXO (e.g., 70,000)
Expected Behavior
The transaction should succeed by using additional UTXOs as inputs to cover the required BTC amount.
Actual Behavior
Error: Insufficient bitcoin funds: needed '2000', available '0'``
The error reports 0 available even though there are ~100,000 sats in the wallet.
Note: The transaction succeeds when sending with 30,000 sats (less than the 40,000 sats available on the asset's UTXO), confirming the issue is specifically about not being able to use BTC from other UTXOs.