BlockchainBlockData

Versions for specific blockchains »

BlockchainBlockData["hash"]

gives information about the block with the specified hash on the blockchain specified by $BlockchainBase.

BlockchainBlockData[n]

gives information about block n on the blockchain.

BlockchainBlockData[-n]

gives information about the block n elements from the end of the blockchain.

BlockchainBlockData[bspec,prop]

gives the specified property of the block.

Details and Options

Examples

open allclose all

Basic Examples  (5)

Get information about a block from the Bitcoin blockchain using its height:

Get information about a block from the Ethereum blockchain using its hash:

Get information about the latest block from the ARK blockchain:

Get multiple blocks by providing a list of heights or block hashes:

Get multiple properties from an Ethereum block:

Options  (2)

BlockchainBase  (2)

Get information from a random Bitcoin mainnet block:

Get information from a random ARK devnet block:

Applications  (2)

Get the size of the latest Bitcoin block in megabytes:

Get the address of a block's generator and inspect its balance:

Convert the result to fiat currency:

Possible Issues  (2)

Nonexistent Hashes  (1)

Using a block hash from one blockchain in another one will return a Missing["NotAvailable"] output:

Incorrect Hashes  (1)

Providing a block hash that is not a hex number will return a $Failed output:

Neat Examples  (1)

Generate sounds from a Bitcoin block:

Introduced in 2018
 (11.3)