Call blockchain.info API with javascript or jQuery -
is possible call blockchain.info api javascript or jquery?
i'm trying address info in json format with:
https://blockchain.info/address/1nkmns4pan2hknkqffrclnokdr5vep324j?format=json
or:
https://blockchain.info/address/1nkmns4pan2hknkqffrclnokdr5vep324j?format=json&cors=true
from i've read, should possible, i'm starting doubt now. know can use php script, proxy, or kind of yql hack, won't want.
basically, i've been trying various different versions of this:
<!doctype html> <html> <head> <title>blockchain.info api</title> <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script> $.getjson( "https://blockchain.info/address/1nkmns4pan2hknkqffrclnokdr5vep324j?format=json&cors=true", function( data ) { $.each(txs.hash, function(key, value){ $('#test').append(key+': '+value+'<br>'); }); }); </script> </head> <body> <div id="test"></div> </body> </html>
but far, nothing's worked. wasting time here?
Comments
Post a Comment