1 2018-06-21 13:29:39 <DrTenma> Greetings.
2 2018-06-21 14:09:33 <IGHOR> Hello. How can I get events from Bitcoin-Qt for specified addresses in/out that not added to wallet.dat?
3 2018-06-21 14:19:46 <sturles> You can't. Why not add the specified addresses to wallet.dat as watch only?
4 2018-06-21 14:20:43 <IGHOR> I need huge count of addresses
5 2018-06-21 14:21:55 <IGHOR> can I fetch all raw confirmed blocks using API?
6 2018-06-21 14:23:49 <IGHOR> I have tried to read blocks from filesystem but it complicated and in future may be changed so I need standard solution
7 2018-06-21 14:25:29 <sturles> Yes, you can fetch blocks using getblock.
8 2018-06-21 14:26:34 <IGHOR> what if I don't know hash of next block yet?
9 2018-06-21 14:26:48 <IGHOR> and need only confirmed blocks, will getblock works?
10 2018-06-21 14:29:25 <sturles> If a block is buried under another block, getblock will return the hash of the next block as nextblockhash.
11 2018-06-21 14:29:40 <sturles> And the previous block in previousblockhash.
12 2018-06-21 14:30:23 <sturles> You can use blocknotify to get notified of new blocks, and use previousblockhash to verify that you have seen the previous block.
13 2018-06-21 14:31:46 <IGHOR> what if there no nextblock yet? and with blocknotify I will need to detect forks myself?
14 2018-06-21 14:34:44 <sturles> The last block will obviously not have nextblockhash. Yes, you will have to detect forks yourself.
15 2018-06-21 14:36:00 <IGHOR> blocknotify defiantly will helps me, thanks
16 2018-06-21 14:39:58 <IGHOR> in the case of getblock, if there is no nextblock yet, how can I get it when it arrives?
17 2018-06-21 14:41:44 <sturles> You will get notified by blocknotify. It will run a script with the blockhash as the first argument.
18 2018-06-21 14:43:01 <IGHOR> any known info about Bitcoin-Qt restarts? I mean if I stop it, wait 2 hours, will I get notify for all past 2 hours blockhash or just last one?
19 2018-06-21 14:46:26 <IGHOR> just in case of crash
20 2018-06-21 14:48:27 <sturles> It will trigger blocknotify for each new block it downloads.
21 2018-06-21 14:52:33 <IGHOR> right
22 2018-06-21 15:18:45 <echeveria> IGHOR: which will fork bomb you if your blocknotify doesn't exit fast enough.
23 2018-06-21 15:36:46 <IGHOR> I think I can get latest trusted hash by getblockchaininfo, and do backward blocks search to get trusted fork