View Single Post
Old 04-20-2017, 01:29 PM  
deonbell
Confirmed User
 
deonbell's Avatar
 
Industry Role:
Join Date: Sep 2015
Posts: 1,045
Quote:
Originally Posted by deonbell View Post
Next step is finding out how to verify whether the public address has been used. This will be the hard part.
I was wrong. Very easy, Thank to a bitcoin API created by Vitalik Buterin, the brains behind Ethereum. Pybitcointools has the function history(addr). Simple as that.

Now here is my output.

Y or N - Ready?
y
starting point
00000000000000000000000000000000000000000000000000 00000000000069
1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT
[{'output': u'56d3132de2297da24d507346575d68f058796ad362142b41 6cfc746798fe5998:1', 'block_height': 423666, 'spend': u'ce965dbfff1b57d9522e34c436d58682edc4ad336bd1f92b 5d12f826090b3b41:0', 'value': 5000000, 'address': u'1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT'}, {'output': u'e5b4b528ff502edfc67fd0e76d2d37f15b904e8e368dff04 e38b856c0ff9ef7f:0', 'block_height': 315653, 'spend': u'd53e9c6f5c8b1140cd8aa7ad4681eb11e13fbc0954eba108 e383d710fc0f7b2b:0', 'value': 100000, 'address': u'1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT'}]
('1DerC5SzMPgBN4o6yaxcRZ7TMBCDus6nLT', '5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreNXqEJ Tk')

Here is the output when I change the exponent for a bitcoin address that does not exist.
python usethis.py
Y or N - Ready?
y
starting point
00000000000000000000000000000000000000000000000000 00000000009999
1A4MGxC9Yk7qkzKYxMYDW2R4fDFhzRmkv7
[]
('1A4MGxC9Yk7qkzKYxMYDW2R4fDFhzRmkv7', '5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEssxevqLt KV')
deonbell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote