WOLFRAM

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

gives information about block n on the blockchain.

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  (7)Summary of the most common use cases

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

Out[1]=1

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

Out[1]=1

Get information about the latest block from the ARK blockchain:

Out[1]=1

Get information about the genesis block from the Tezos blockchain:

Out[1]=1

Get information about a random block from the Cardano blockchain:

Out[1]=1

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

Out[1]=1

Get multiple properties from an Ethereum block:

Out[1]=1

Options  (3)Common values & functionality for each option

BlockchainBase  (3)

Get information from a random Bitcoin mainnet block:

Out[1]=1

Get information from a random ARK devnet block:

Out[1]=1

Get information from a random Tezos testnet block:

Out[1]=1

Applications  (2)Sample problems that can be solved with this function

Get the size of the latest Bitcoin block in megabytes:

Out[1]=1

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

Out[1]=1
Out[2]=2

Convert the result to fiat currency:

Out[3]=3

Possible Issues  (2)Common pitfalls and unexpected behavior

Nonexistent Hashes  (1)

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

Out[1]=1
Out[2]=2

Incorrect Hashes  (1)

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

Out[1]=1

Neat Examples  (1)Surprising or curious use cases

Generate sounds from a Bitcoin block:

Out[1]=1
Wolfram Research (2018), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainBlockData.html.
Wolfram Research (2018), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainBlockData.html.

Text

Wolfram Research (2018), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainBlockData.html.

Wolfram Research (2018), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainBlockData.html.

CMS

Wolfram Language. 2018. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BlockchainBlockData.html.

Wolfram Language. 2018. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BlockchainBlockData.html.

APA

Wolfram Language. (2018). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainBlockData.html

Wolfram Language. (2018). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainBlockData.html

BibTeX

@misc{reference.wolfram_2025_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainBlockData.html}", note=[Accessed: 29-March-2025 ]}

@misc{reference.wolfram_2025_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainBlockData.html}", note=[Accessed: 29-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2018}, url={https://reference.wolfram.com/language/ref/BlockchainBlockData.html}, note=[Accessed: 29-March-2025 ]}

@online{reference.wolfram_2025_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2018}, url={https://reference.wolfram.com/language/ref/BlockchainBlockData.html}, note=[Accessed: 29-March-2025 ]}