I've mined a few blocks on a blockchain, and I'm trying to figure how to actually see them. What is the correct RPC command ? I've managed to see all the coinbase transactions thanks to listtransactions, and my getbalance output seems ok, but they don't show up in listreceivedbyaddress nor listreceivedbyaccount.
Asked
Active
Viewed 294 times
0
-
1These are two different questions. Please edit your question to include only the first and place the second part to a new question. – Mar 31 '15 at 22:11
-
@GeorgeKimionis Here it is – rmac Apr 01 '15 at 06:38
-
@rmac to clarify, are you talking about Bitcoin -regtest or a Bitcoin-fork? – Wizard Of Ozzie Apr 01 '15 at 10:08
1 Answers
1
You can use the listsinceblock command to filter out the mined coins. listsinceblock contains a category field. The values you're looking for are:
generate: for coins mined locally that are available for spendingimmature: same as above but coins cannot be spent yet
-
It seems to work, but why aren't two clients returning the same list? Since they both have access to the same list of transaction, I would have thought that the output should be the same (and that there was no way to know, from this command only, that it was possible to redeem a generate block) – rmac Apr 01 '15 at 06:49
-
@rmac what do you mean by "two clients"? Two different
bitcoin-coreinstances? If so, each instance has its own wallet and so the results will be different. – Apr 01 '15 at 10:44 -
@GeorgeKimionis Judging from the tags and the quote "on a* blockchain* I'm inclined to think this is a Bitcoin fork project stuck at the pre-mine phase. I've tried to clarify this, rmac, which is it mate? Bitcoin or a fork? – Wizard Of Ozzie Apr 03 '15 at 01:43
-