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  (7)

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 information about the genesis block from the Tezos blockchain:

Get information about a random block from the Cardano blockchain:

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

Get multiple properties from an Ethereum block:

Options  (3)

BlockchainBase  (3)

Get information from a random Bitcoin mainnet block:

Get information from a random ARK devnet block:

Get information from a random Tezos testnet 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:

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.

CMS

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2018}, url={https://reference.wolfram.com/language/ref/BlockchainBlockData.html}, note=[Accessed: 22-December-2024 ]}