BlockchainBlockData["hash"]
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.
BlockchainBlockData
Versions for specific blockchains »BlockchainBlockData["hash"]
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
- It takes the following options:
-
BlockchainBase $BlockchainBase specified blockchain and network MaxItems All maximum number of transactions to return - BlockchainBlockData[-1] gives information on the latest block in a blockchain.
Examples
open all close allBasic Examples (5)
Get information about a block from the Bitcoin blockchain using its height:
BlockchainBlockData[1221]//DatasetGet information about a block from the Bitcoin blockchain using its hash:
BlockchainBlockData["0000000073996a70dcbd4dff31d247bf4e5d2639bd7f7b417b131114ae0c9c9b"]//DatasetGet information about the latest block from the Bitcoin blockchain:
BlockchainBlockData[Last]//DatasetGet information about the genesis block from the Bitcoin blockchain:
BlockchainBlockData[First]//DatasetGet information about the second to last block from the Bitcoin blockchain:
BlockchainBlockData[-2]//DatasetScope (3)
Multiple Blocks (1)
Specific Properties (2)
Single Property (1)
Options (8)
BlockchainBase (7)
Get information from a random Ethereum block:
BlockchainBlockData[RandomInteger[500000], BlockchainBase -> {"Ethereum", "Mainnet"}]//DatasetGet information from a random ARK block:
BlockchainBlockData[RandomInteger[2000000], BlockchainBase -> {"ARK", "Mainnet"}]//DatasetGet information from a random bloxberg block:
BlockchainBlockData[RandomInteger[200000], BlockchainBase -> "Bloxberg"]//DatasetGet information from a random Tezos block:
BlockchainBlockData[RandomInteger[20000], BlockchainBase -> {"Tezos", "Mainnet"}]//DatasetGet information from a random Cardano block:
BlockchainBlockData[RandomInteger[200000], BlockchainBase -> {"Cardano", "Mainnet"}]//DatasetGet information from a random Litecoin block:
BlockchainBlockData[RandomInteger[20000], BlockchainBase -> {"Litecoin", "Mainnet"}]//DatasetGet information from a random Bitcoin Cash block:
BlockchainBlockData[RandomInteger[20000], BlockchainBase -> {"BitcoinCash", "Mainnet"}]//DatasetApplications (2)
Get the size of the latest Bitcoin block in megabytes:
UnitConvert[Quantity[BlockchainBlockData[-1, "ByteCount", BlockchainBase -> "Bitcoin"], "Bytes"], "Megabytes"]//NGet the address of a block's generator and inspect its balance:
address = Lookup[BlockchainBlockData["69bac5c3690523f7d93a53ce97a034f88e4bd286165f41ee45074eced7ddfc74", "Generator", BlockchainBase -> "ARK"], "Address"]balance = BlockchainAddressData[address, "Balance", BlockchainBase -> "ARK"]Convert the result to fiat currency:
CurrencyConvert[balance, "PeruvianSoles"]Possible Issues (2)
Nonexistent Hashes (1)
Using a block hash from one blockchain in another one will return a Missing["NotAvailable"] output:
btcBlockHash = BlockchainBlockData[-1, "BlockHash", BlockchainBase -> "Bitcoin"]BlockchainBlockData[btcBlockHash, BlockchainBase -> {"Bitcoin", "Testnet"}]Incorrect Hashes (1)
Providing a block hash that is not a hex number will return a $Failed output:
BlockchainBlockData["6h6h6h6h", BlockchainBase -> "Ethereum"]See Also
BlockchainBase $BlockchainBase BlockchainData BlockchainTransactionData BlockchainAddressData BlockchainPut BlockchainGet Hash
Function Repository: RandomBlockchainBlockData
Related Guides
History
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_2026_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainBlockData.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2018}, url={https://reference.wolfram.com/language/ref/BlockchainBlockData.html}, note=[Accessed: 12-June-2026]}