Author

Topic: What kind of address has prefix of tb1q? (Read 267 times)

HCP
legendary
Activity: 2086
Merit: 4361
May 15, 2018, 10:10:52 PM
#7
Thanks for the reply!
Yes I did generate lots of 0.000009 outputs to test how small an output amount can be.
But it still appears quite odd to me that bitcoind has spent 10 inputs to pay the transaction amount and additionally 840 freaking inputs to spend as change! It makes no sense. Because of such behaviour I am now unable to send transactions due to all transactions being too large. I guess the only way is to manually construct raw transactions for a situation where I have large amount of dust in my wallet.
Which command did you use to send the transaction? And did you specify a particular fee or did you let bitcoind handle the fee automatically?

It seems odd that it would just spend the entire contents of the wallet... And it doesn't appear that it's a case of needing to include all the inputs to cover the fee.

Bitcoin-Qt certainly doesn't include all inputs automatically... Although you can by switching on the coin control features and manually selecting inputs.

It's possible the specific create or send command you're using defaults to spending ALL available inputs.
hero member
Activity: 2576
Merit: 883
Freebitco.in Support https://bit.ly/2I9BVS2
I guess the only way is to manually construct raw transactions for a situation where I have large amount of dust in my wallet.

The best thing to do is avoid having a large number of dust UTXOs by regularly sweeping them into larger a UXTO.
jr. member
Activity: 54
Merit: 1
Hello!
I've noticed there are addresses that have prefix of tb1q
Yes, they are Bech32 encoded addresses for the testnet, in contrast to the legacy base58 addresses.
Quote
Anything special about these addresses?
They are usually used for native segwit addresses.
Quote
When I tried to send a little bit of testnet bitcoins to such an address bitcoind did that just fine. But in the pricess it sent a huge amount of bitcoin (relatively to the main amount I was sending) to change address.
Here's that transaction
[url]https://testnet.blockchain.info/tx/3865f0eb3f59dfbef5506e0269430c773df0fa288bc89fb4fcc99ae1a2d8835e[/url]
I was sending 0.00008 BTC
But bitcoind sent 0.00909337 BTC as change in the process. And you can see how many unspent inputs it had to spend to do that. Why would it do that?
Because your testnet addresses had a lot of 0.000009BTC  UTXOs (inputs), so to send 0.00008 BTC it needed ~9 inputs, then it consolidated the remaining UTXOs as change.

Thanks for the reply!
Yes I did generate lots of 0.000009 outputs to test how small an output amount can be.
But it still appears quite odd to me that bitcoind has spent 10 inputs to pay the transaction amount and additionally 840 freaking inputs to spend as change! It makes no sense. Because of such behaviour I am now unable to send transactions due to all transactions being too large. I guess the only way is to manually construct raw transactions for a situation where I have large amount of dust in my wallet.
hero member
Activity: 692
Merit: 569
Yes, these are tesnet bech32 addresses.. corresponding prefix on mainnet would be bc1
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
Hello!
I've noticed there are addresses that have prefix of tb1q
Yes, they are Bech32 encoded addresses for the testnet, in contrast to the legacy base58 addresses.
Quote
Anything special about these addresses?
They are usually used for native segwit addresses.
Quote
When I tried to send a little bit of testnet bitcoins to such an address bitcoind did that just fine. But in the pricess it sent a huge amount of bitcoin (relatively to the main amount I was sending) to change address.
Here's that transaction
[url]https://testnet.blockchain.info/tx/3865f0eb3f59dfbef5506e0269430c773df0fa288bc89fb4fcc99ae1a2d8835e[/url]
I was sending 0.00008 BTC
But bitcoind sent 0.00909337 BTC as change in the process. And you can see how many unspent inputs it had to spend to do that. Why would it do that?
Because your testnet addresses had a lot of 0.000009BTC  UTXOs (inputs), so to send 0.00008 BTC it needed ~9 inputs, then it consolidated the remaining UTXOs as change.
legendary
Activity: 1946
Merit: 1427
Hello!
I've noticed there are addresses that have prefix of tb1q
Anything special about these addresses?

When I tried to send a little bit of testnet bitcoins to such an address bitcoind did that just fine. But in the pricess it sent a huge amount of bitcoin (relatively to the main amount I was sending) to change address.
Here's that transaction
https://testnet.blockchain.info/tx/3865f0eb3f59dfbef5506e0269430c773df0fa288bc89fb4fcc99ae1a2d8835e
I was sending 0.00008 BTC
But bitcoind sent 0.00909337 BTC as change in the process. And you can see how many unspent inputs it had to spend to do that. Why would it do that?

Correct me if i'm wrong, but aren't tb1q adresses used for the lightning network on the testnet?

I haven't looked into LN that much, but i see this prefix alot in github issues about LN. Ex: https://github.com/lightningnetwork/lnd/issues/812


Quote
Testnet coin uses the prefix ”tb1q”, but due to a bug in the code, the
encoding process only appended ”tb1.” Since the addresses were incorrectly formatted,
all the transactions sent to these addresses were rejected by Testnet, and
the associated money disappeared. This vulnerability would not be easily identi-
fied by inexperienced users. While the prefix has since been fixed, the root of the
problem could be even better remedied if Lightning implemented a verification
system for address formats before broadcasting transactions to the Testnet
https://courses.csail.mit.edu/6.857/2017/project/7.pdf
jr. member
Activity: 54
Merit: 1
Hello!
I've noticed there are addresses that have prefix of tb1q
Anything special about these addresses?

When I tried to send a little bit of testnet bitcoins to such an address bitcoind did that just fine. But in the pricess it sent a huge amount of bitcoin (relatively to the main amount I was sending) to change address.
Here's that transaction
https://testnet.blockchain.info/tx/3865f0eb3f59dfbef5506e0269430c773df0fa288bc89fb4fcc99ae1a2d8835e
I was sending 0.00008 BTC
But bitcoind sent 0.00909337 BTC as change in the process. And you can see how many unspent inputs it had to spend to do that. Why would it do that?
Jump to: