August 2018
Intermediate to advanced
90 pages
1h 57m
English
For block explorer methods, start by importing the relevant classes from the blockchain library. To get a particular block, call the get_block method as shown in the following code. It expects a block to be passed in as the parameter.
# import blockchain libraryfrom blockchain import blockexplorer# get a particular blockblock = blockexplorer.get_block('')
By taking an example block from the web, from Blockchain.info, copy the hash for this block (Block #536081) and pass it to the get_block method, as shown in the following screenshot:

Now lets get some information about this block. For example, the block fee, block size, ...
Read now
Unlock full access