3
how do sites like https://blockexplorer.com determine if the input (see inputbox in the header of https://blockexplorer.com ) is an address, transaction ID or block ID?
I want to write something similar myself on my local machine, where I run a full node and have access to bitcoind RPC. I need to know how to direct the input given one box can be 3 things.
Thanks, this doesn't look like anything I'm yet familiar with, are these commands I can execute or query via RPC? – BitcoinBLues – 2017-09-05T18:10:26.287
It's pseudo-code. What he means by
if ( blockDB.contains ( input ) )is to test if the database of valid blocks contains the input as the hash of one of the blocks in the database. – David Schwartz – 2017-09-05T21:43:00.270@DavidSchwartz Thanks, can you please provide a link to how to perform this sort of query via RPC? – BitcoinBLues – 2017-09-06T09:03:25.213