Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
18805416
Topic
1891645
Board
Bitcoin Discussion
Re: Big List of bitcoin block hashes
by
pooya87
on
30/04/2017, 03:07:16 UTC
Quote from: blksith0 on April 30, 2017, 12:53:21 AM
Can someone help with the API?
Quote
Single Block
https://blockchain.info/rawblock/
$block_hash
https://blockchain.info/block-index/
$block_index?format=json
Can someone give me an example of using that on a hash?
Why does this example not work?
https://blockchain.info/rawblock/
$000000000000000002165cb091c1cfe27e413cd4cad7d793cde5d5eaff0abbaa
because you have a $ before your hash
https://blockchain.info/rawblock/000000000000000002165cb091c1cfe27e413cd4cad7d793cde5d5eaff0abbaa
it is a weird programming language thing, i think it is PHP, $block_hash means block_hash is a variable needs to be replaced.