Timeline for What are the categories of a transaction, and what do they mean?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 2, 2021 at 20:36 | comment | added | philosopher | @PieterWuille Not all immature transactions have an amount of 0. Some can have an amount greater than 0, at least when polling listsinceblock. The reason I am asking this question is because I am writing a program where given outputs from listsinceblock, I want to compute the valid deposits with confirmations greater than 4 for a user's wallet address. Sometimes when I poll listsinceblock I get immature transactions in the output with with amount greater than 0. I am not sure whether this would count as a deposit to the user's wallet or not, hence the question. | |
Aug 2, 2021 at 20:00 | comment | added | Pieter Wuille |
Immature transaction outputs will actually be listed with value 0, in listtransactions , I believe.
|
|
Aug 2, 2021 at 19:56 | comment | added | philosopher | @PieterWuille Thanks! Hypothetically though, if I was had a list of transactions, which included immature transactions and I wanted to display the sum of deposits for user's address, would I include the immature transaction or exclude them? Intuition tells me I should exclude them since they are not spendable until they become generation transactions. | |
Aug 2, 2021 at 18:27 | comment | added | Pieter Wuille | Unless you're a miner who is using your own bitcoin core's wallet to build your own pool with, you won't ever need to worry about immature transactions. | |
Aug 2, 2021 at 18:21 | comment | added | philosopher | @PieterWuille Thank you. In this case, if I was calculating the the sum of deposits for an address from the output of listsinceblock, would I only have to consider transactions of category receive and generate and ignore all transactions of category immature, send, orphan or any other category? | |
Aug 2, 2021 at 16:28 | comment | added | Pieter Wuille | @philosopher That is correct. The outputs of coinbase transactions (called "generation" transactions in the answer here) cannot be spent until 100 blocks have been built on top of the block that includes them. | |
Aug 2, 2021 at 10:51 | comment | added | philosopher | @PieterWuille would that mean that immature transactions cannot be spent by the user until they get a 100 confirmations? | |
Apr 14, 2013 at 17:56 | comment | added | Pieter Wuille | @jgm The protocol requires 101, IIRC. The wallet software uses 120 to protect against some problems in cases of reorganisation. | |
Apr 14, 2013 at 17:42 | comment | added | jgm | @Pieter Yes sorry absolutely right. Have updated answer (although protocol says that it's 100 confirmations not 120) | |
Apr 14, 2013 at 17:41 | history | edited | jgm | CC BY-SA 3.0 |
added 221 characters in body
|
Apr 14, 2013 at 17:32 | comment | added | Pieter Wuille | immature is only used for generation transactions, and is decidedly different from unconfirmed transactions. Unconfirmed transactions are perfectly valid and can be spent, though wallets try to avoid it. Immature coins are generations which do not have 120 confirmations yes, and these are effectively invalid (worthless) before they are. | |
Apr 14, 2013 at 13:49 | vote | accept | Ramon Tayag | ||
Apr 14, 2013 at 12:40 | history | answered | jgm | CC BY-SA 3.0 |