Pages:
Author

Topic: Trust wallet dust UTXO error (Read 490 times)

legendary
Activity: 2380
Merit: 5213
August 24, 2023, 11:51:13 PM
#43
So, sending the max amount on Electrum from the imported trustwallet address to newly created Electrum address with default transaction fee would solve the UTXO dust problem? Or do I have to adjust the transaction fee and the amount?
With every segwit input you add to your transaction, you increase the (virtual) size of your transaction by ~91 vbytes and with every legacy input to your transaction, you increaase the (virtual) size of your transaction by ~148 vbytes.
(Segwit addresses are the ones that starts with bc1 and legacy addresses are the ones that start with 1)

The purging fee rate for nodes that are using default setting is now around 5.3 sat/vbyte. This means that the minimum fee rate you can use for your transaction, so that it can be broadcasted to the network is now around 5.3 vbyte.
If you are in hurry and you want your transaction to be confirmed very fast, you should use the fee rate of around 10 sat/vbyte.
If you want your transaction to be confirmed in the next few hours, the fee rate of around 7 sat/vbyte should be enough.
(Note that the required fee rate may change over time.)

Let's say you want to make a transaction with the fee rate of 7 sat/vbyte and all your UTXOs are segwit. For every UTXO you add to your transaction, the transaction fee increases by 7*91 vbytes (637 vbytes).
If you have a UTXO worth 600 satoshi, you shouldn't spend that now, since the fee required to spend that would be higher than its value.
If you have a UTXO worth 6000 satoshi, you should spend around 10% of its value to spend it. It's up to you to decide whether you want to spend that now or you want to wait until the network is less congested and you can spend that with lower fees.

For choosing which UTXOs you want to spend, you should go to "Coins" tab on electrum and use "Coin control" feature.
Note: Coin control feature is available only on desktop version of electrum.
newbie
Activity: 2
Merit: 0
August 24, 2023, 06:49:56 PM
#42
UTXOs should not be disregarded, but it is Trustwallet that is disregarding the dust UTXOs. You can send dust amount on Electrum wallet in combination as long as they 546 for legacy address or 294 for segwit or more (transaction fee not included yet).

Trust wallet doesn't offer a good solution to the UTXO dust problem, and it's even closed source. Avoid it. You will be able to sweep all the UTXO's with Electrum

This is very helpful!
So, sending the max amount on Electrum from the imported trustwallet address to newly created Electrum address with default transaction fee would solve the UTXO dust problem? Or do I have to adjust the transaction fee and the amount? And yes, I agree that I should move away from trust wallet.

copper member
Activity: 2198
Merit: 1837
🌀 Cosmic Casino
August 24, 2023, 06:17:58 PM
#41
I have a couple of questions:
1) Is it correct that only BTC will be imported? The other coins can still be used in the trust wallet?
Yes, you will only be able to see Bitcoin balances and spend only Bitcoin. Electrum supports only Bitcoin.

2) How does making a transaction in Electrum with imported BTC address with UTXO dust solve the problem? Does Electrum automatically disregard the utxo? My transaction will be pretty large.
Trust wallet doesn't offer a good solution to the UTXO dust problem, and it's even closed source. Avoid it. You will be able to sweep all the UTXO's with Electrum
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
August 24, 2023, 06:05:27 PM
#40
1) Is it correct that only BTC will be imported? The other coins can still be used in the trust wallet?
Yes.

For your bitcoin wallet, know that Trustwallet is close source and it would be better to use Electrum to create another wallet and send all the coins from Trustwallet imported seed phrase on Electum to an address of the seed phrase you created on Electrum itself.

2) How does making a transaction in Electrum with imported BTC address with UTXO dust solve the problem? Does Electrum automatically disregard the utxo? My transaction will be pretty large.
UTXOs should not be disregarded, but it is Trustwallet that is disregarding the dust UTXOs. You can send dust amount on Electrum wallet in combination as long as they 546 for legacy address or 294 for segwit or more (transaction fee not included yet).
newbie
Activity: 2
Merit: 0
August 24, 2023, 06:02:05 PM
#39
Hi everyone!
I do have a similar problem, where I cannot make any transaction out of trust wallet, probably due to utxo dust. I am thinking to do a similar thing as suggested in this thread, import my address to Electrum using the seed phrase. I have a couple of questions:
1) Is it correct that only BTC will be imported? The other coins can still be used in the trust wallet?
2) How does making a transaction in Electrum with imported BTC address with UTXO dust solve the problem? Does Electrum automatically disregard the utxo? My transaction will be pretty large.

Thank you for any input.
legendary
Activity: 2730
Merit: 7065
May 14, 2023, 02:15:04 AM
#38
It seems you were quite impatient to see those transactions get confirmed. I don't see why because you sent the coins to yourself. There wasn't a trading partner on the other side waiting for his money or anything. In those cases, it really doesn't matter if the first confirmation is in 2 hours or 10 days.

If you had just left those parent and child transactions alone, they would have gone through by now by themselves. There is less than 0.4 vMB of transactions paying 25 sat/vByte right now, which is your effective fee rate. That means, everyone paying that amount will have their transactions confirmed in the next 1-2 blocks unless we don't see a sudden spike in new transactions or long waiting times between blocks. Sometimes it's just about being patient and not being in a hurry.   
newbie
Activity: 14
Merit: 14
May 13, 2023, 04:25:42 PM
#37
I waited for 6 confirmations for the fees deducted.
You didn't have to wait for 6 confirmations. You could make your new transaction even when those transactions were still unconfirmed.

Note that with canceling a transaction and then making a new one, you have to pay fee for two transactions and you waste some money.
Instead of canceling the first transaction and then making a new one, you could bump the fee. With bumping the fee, you replace your transaction with a new one spending more fee.

Sure but the estimated time for the parent transaction was set to 24 hours for two days. The thing is i couldn't double spend because no BTC funds were in that wallet left after the transaction which i eventually canceled. By double spending i mean bumping the fee. This option didn't turn white on electrum. So i canceled the transaction, fees were deducted and made a new one. I know that you don't have to wait but just to be sure I waited which was only minutes.

Made the new transaction and you are right i effectively paid around 28 USD in fees for a final transaction of around 30 USD lmao. However i don't care about (this) money. I learned something which is good. Ohh well plebs like me being plebs. I'm learning slowly. I think all this time i paid too many fees for some transaction i didn't inmidiatly needed. Next time I'll make sure to pay the minimum required fees (for the time i want it to be processed in depending on the nature of the transaction). No double spending or cancelation of TX is needed. Btw I realise that's about the same thing right?
legendary
Activity: 2380
Merit: 5213
May 13, 2023, 01:42:00 PM
#36
I waited for 6 confirmations for the fees deducted.
You didn't have to wait for 6 confirmations. You could make your new transaction even when those transactions were still unconfirmed.

Note that with canceling a transaction and then making a new one, you have to pay fee for two transactions and you waste some money.
Instead of canceling the first transaction and then making a new one, you could bump the fee. With bumping the fee, you replace your transaction with a new one spending more fee.
newbie
Activity: 14
Merit: 14
May 13, 2023, 12:30:54 PM
#35
Thanks again all. Actually i managed to do it finally within minutes. I canceled the small transaction. With that the parent transaction which was pending for too long. After cancellation those transactions were replaced by fees. Don't know how else to put it i am probably saying it wrong.

But when the child and parent transaction were cancelled they both inmideatly jumped to one confirmation. I waited for 6 confirmations for the fees deducted. Then i made a new transaction and it arrived within 10 minutes. Simple. Hard to explain tho since I'm a pleb lol. I really appreciate all the help. Active forum with deep technical understanding of bitcoin.. pretty rare. Btw isn't this like the perfect time for miners in a long while?

Well that's true. However i can control it fine when it's just sitting in my ledger. Well that's actually wrong it's not fysically in my ledger but you get the point. Can control it as long as I don't mess with it lmao.
legendary
Activity: 994
Merit: 1089
May 13, 2023, 12:10:25 PM
#34
Thank you for the help but my brain is already dead. I'm done. I canceled sister payment and now balance is 0. I hate electrum now and trust wallet. Why in gods name can they not make a transaction fool proof??
Sorry for the inconveniences, it can be hard to understand at first, but it becomes easier later on. Neither Electrum or even BTC is fool-proof, there is always a chance for users to make a mistake, neither do i think there is any system that is fool-proof. But once you understand how it works, you can use it easily without any mistakes.
Why allow to send with less fee and 20 inputs?
Electrum allows you to adjust the fee rate based on how quickly you want miners to confirm your transaction, not everyone wants to pay a high fee as they are willing to wait, while some people do not have the time to wait and will use enough fees so their transaction can be confirmed fast, that is why you should check the mempool before making a transaction, so you know the best fee rate to choose personally.
Why electrum let's you make a payment when the parent one isn't yet confirmed and also the newer one with less fees.
CPFP is a good feature for bitcoiners, even though it can be expensive based on the size of the TX's. Imagine your transaction is stuck and there is no way to bump its fees, that is why there is rbf and cpfp to enable people bump fees and get their transactions confirmed quicker.
Fucking bitcoin man i thought you were a simple coin. Lmao I'm gonna sleep under my rock again like Patrick.
Controlling your own money has never been simple Tongue Roll Eyes.
legendary
Activity: 2730
Merit: 7065
May 13, 2023, 01:43:26 AM
#33
Sure but i paid fees total of 30k sats and according to mempool it's not going to be processed anytime soon.
The total fee doesn't matter on the Bitcoin protocol. What matters is how much you pay per v/Byte. We pay a certain amount of sats per vByte. Imagine a courier who carries packages to customers. Now imagine you have the freedom to decide how much you want to pay him per 100 gram of weight you ship with their company. And they only care about that system of payment, not the total you'll pay for all your packages. Now, I am willing to offer $1 per 100 gram, while your offer is only $0.20/100 gram. The courier will favor all customers paying the highest amounts per gram as there is limited space in his truck. Maybe it's a bit clearer now, maybe not. 

Maybe thats because the parent transaction has much higher fees than the new transaction.
Your new transaction is broadcasted with much higher fees than your first one. 93 sat/vByte vs 20 sat/vByte if I remembered correctly. The number you should be looking at is 25 sat/vByte as the effective rate for both. With the way things stand now, you are about 5-6 blocks away from a confirmation. Obviously, that's just theory because new transactions are coming in and some will pay more, others less than what you did. Just wait it out. Maybe the mempool clears a bit during the weekend. It usually does, but last week was different.   
newbie
Activity: 14
Merit: 14
May 12, 2023, 10:30:31 PM
#32
Sure but i paid fees total of 30k sats and according to mempool it's not going to be processed anytime soon. Maybe thats because the parent transaction has much higher fees than the new transaction.


Canceled new transaction. Waited for the replacement (fees only) to get confirmed and then made a new transaction. Received the new one within minutes. All in all about 20 USD fees for 30 USD transaction by the last try.

Edit canceled the small transaction and the parent one got canceled with that. Waited until the fees deducted from my account to get confirmed. Send new payment and received it within minutes. Note to all other newbies. When you click on cancel tx. Wait for the fees that you paid (to get confirmed) before you send out a new transaction. I canceled tx and right after i made a new transaction. Don't do this. Wait for the balance that is returned to your balance and the fees deducted to get confirmed on the blockchain.

Take note that what matters to miners is the fee rate, not the absolute fee.
The fee paid for the parent is higher than the fee paid for the child, but its fee rate is lower. The fee rate used for the parent is 20.1 sat/vbyte and the fee rate used for the child is 93.3 sat/vbyte.


I think the fees i paid for this small transaction is more than enough. But protocols are protocols.
The parent isn't a small transaction. It includes 20 inputs and has the virtual size of around 1400 vbyte.

Thank you for the help but my brain is already dead. I'm done. I canceled sister payment and now balance is 0. I hate electrum now and trust wallet. Why in gods name can they not make a transaction fool proof?? Why allow to send with less fee and 20 inputs? Why. I don't get it at all. Fuck this bitcoin. Why electrum let's you make a payment when the parent one isn't yet confirmed and also the newer one with less fees. Didn't even get a warning only that i pay unusual high fees. Fucking bitcoin man i thought you were a simple coin. Lmao I'm gonna sleep under my rock again like Patrick.
legendary
Activity: 2380
Merit: 5213
May 12, 2023, 02:58:51 PM
#31
Sure but i paid fees total of 30k sats and according to mempool it's not going to be processed anytime soon. Maybe thats because the parent transaction has much higher fees than the new transaction.
Take note that what matters to miners is the fee rate, not the absolute fee.
The fee paid for the parent is higher than the fee paid for the child, but its fee rate is lower. The fee rate used for the parent is 20.1 sat/vbyte and the fee rate used for the child is 93.3 sat/vbyte.


I think the fees i paid for this small transaction is more than enough. But protocols are protocols.
The parent isn't a small transaction. It includes 20 inputs and has the virtual size of around 1400 vbyte.
newbie
Activity: 14
Merit: 14
May 12, 2023, 02:37:59 PM
#30


Sure but i paid fees total of 30k sats and according to mempool it's not going to be processed anytime soon. Maybe thats because the parent transaction has much higher fees than the new transaction. I think this transaction will get purged too after two weeks. It's not broadcaster and signed hence i could and probably still can cancel the tx. I think the fees i paid for this small transaction is more than enough. But protocols are protocols. Good luck to the people willing to pay 20 USD fees for small transactions in order to get it confirmed. I understand the miners tho. You have to stay profitable.
legendary
Activity: 2730
Merit: 7065
May 12, 2023, 02:07:20 PM
#29
I have used electrum a long time ago (on desktop) and it always did what it was supposed to do however the interface was like something from 1998
The interface of the desktop version is of secondary importance because the wallet works just fine. The mobile version of Electrum is another can of worms, though. Its looks are outdated ,and it just feel buggy and incomplete. I have never felt comfortable using it.   

I don't even know if it's possible for a btc transaction to get stuck even when you send it with like 2 sats fees it should in theory eventually arrive correct?
In theory, yes, but in practice it's a bit different. Other members already introduced you to the term 'purging'. You can see the data for purging in Mempool.space. The memory pools don't have unlimited capacities. When they run at full capacity, the software removes/deletes/purges transactions that pay the lowest fees to make room for those willing to pay more. If you broadcasted a 2 sat/vByte transaction right now, chances are that mempools would reject making a record of it. It just doesn't pay even nearly as much as it's needed for an onchain confirmation anytime soon. 
newbie
Activity: 14
Merit: 14
May 12, 2023, 09:38:40 AM
#28
Very technical but after a look at the mempool again i dont believe it is going to be confirmed today or tomorrow or even a week from now. Because that first transaction will never be confirmed lol. It's stuck at 24 hours estimated time since yesterday and not moving. I'm going to write this little piece off as a lost and remove the imported electrum wallet. Dont trust this wallet anymore (officially trust since it's an import seed from that). Just going to resume on new electrum wallets. Not going to make this mistake again.
legendary
Activity: 2380
Merit: 5213
May 12, 2023, 07:05:49 AM
#27
Fees paid: 93.3 sats. Effective fees: 25.4 sats. Actual fees 10k sats, so three.
The effective fee rate is equal to the total fee paid for two transactions divided by their total size and that's what matters to miners.

You paid 28040 satoshi for the first transaction and 10,290 satoshi for the second transaction. The (virtual) sizes of the transactions were 1400 vbyte and 110 vbyte, respectively.
This means that you paid 38330 satoshi for 1510 vbyte. It gives you the effective fee rate of 25.4 sat/vbyte.

Note that the transactions will be confirmed at the same time.
newbie
Activity: 14
Merit: 14
May 12, 2023, 06:00:57 AM
#26
Thank you i finally understand that bit. It's basically the same transaction. I canceled the tx from my earlier transaction and the funds where send to my own balance again on electrum. Then i made a second transaction which I'm waiting for now. So by cancelling my first transaction I have to wait for those funds that returned to my wallet (to confirm) before i made the second transaction to confirm. Electrum let me make transaction anyway. That's why it's stuck on 30 min on mempool forever (estimated time for confirmation).
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
May 12, 2023, 05:47:05 AM
#25
Man i really don't understand that sorry. By parent consolidating you mean the transaction that i canceled right? Because it's almost the same in amount. How can they both be confirmed? That would mean i get the funds two times? There is only about 45 USD in that wallet. I'm thinking all those inputs are from the failed transactions earlier? In other words the parent transaction has been cancelled but still needs to be confirmed? I'm not gonna up the fees. Don't care about this transaction but want to learn the technical procedure when something like this happens in order to avoid it in the future, altho i think using electrum instead of trust from now on will do the job. 20 inputs..
This is your address: bc1qddytrwznva7c2rmkn87s5tlx938gv0parg3gkq

Check it on blockchain explorer: https://blockchair.com/bitcoin/address/bc1qddytrwznva7c2rmkn87s5tlx938gv0parg3gkq

You will see that you make a transaction. But you will see that you spend from an unconfirmed transaction. Some wallets like Electrum can spend from unconfirmed transaction.

Because the unconfirmed transaction that you spend from has not been confirmed is the reason. The fee you used in the later transaction is not still enough to get the unconfirmed (parent) transaction and your transaction confirmed early. Just wait as the mempool is becoming less congested.
newbie
Activity: 14
Merit: 14
May 12, 2023, 05:43:33 AM
#24
Man i really don't understand that sorry. By parent consolidating you mean the transaction that i canceled right? Because it's almost the same in amount. How can they both be confirmed? That would mean i get the funds two times? There is only about 45 USD in that wallet. I'm thinking all those inputs are from the failed transactions earlier? In other words the parent transaction has been cancelled but still needs to be confirmed? I'm not gonna up the fees. Don't care about this transaction but want to learn the technical procedure when something like this happens in order to avoid it in the future, altho i think using electrum instead of trust from now on will do the job. 20 inputs..
Pages:
Jump to: