I need help using JSON and json bitcoin / blockexplorer calls. I'm not even sure if this will work. Basically I am trying to verify the address of a bitcoin wallet. I want him to check the blockblock to make sure that this is a "valid" address or not.
Here is what I have done so far:
function checkAddress(){ var address = $('#wallet').val(); $.getJSON('http://blockexplorer.com/q/checkaddress/'+address+'?format=json',{"format":"json"},function(data){ alert('xxx == '+data); }); }
But he seems to be doing nothing at all. Is it possible to use blockbacks with JSON to get results? I'm incredibly new to bitcoin, and I'm not quite sure what I'm doing.
The full URL should be something like this: http://blockexplorer.com/q/checkaddress/1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD - if true, it returns 00
Here is the error code page itself:
http://blockexplorer.com/q/checkaddress
source share