Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
7038180
Topic
632182
Board
Service Discussion
Re: Can I call the blockchain.info API with just javascript or jQuery?
by
coretechs
on
30/05/2014, 15:18:19 UTC
You need to use an ampersand for query parameters: "&cors=true"
ex -
Code:
$.getJSON("http://blockchain.info/unspent?active=1CjPR7Z5ZSyWk6WtXvSFgkptmpoi4UM9BC&cors=true", function (data) { alert(JSON.stringify(data)); });