BlockchainBlockData (for bloxberg)
BlockchainBlockData["hash"]
gives information about the block with the specified hash on the bloxberg blockchain.
gives information about block n on the bloxberg blockchain.
gives information about the block n elements from the end of the bloxberg blockchain.
BlockchainBlockData[bspec,prop]
gives the specified property of the block.
Details
- BlockchainBlockData[-1] gives information on the latest bloxberg block.
- Properties include:
-
"BlockHash" hash of this block "BlockNumber" number (height) of this block in the bloxberg blockchain "Timestamp" time when this block was validated "ValidatorAddress" validator address "ValidatorName" validator name "Size" size of this block in bytes "Confirmations" number of confirmations "GasUsed" total used gas by all transactions in this block "GasLimit" maximum gas allowed in this block "PreviousBlockHash" hash of the previous block "MerkleRoot" Merkle root hash of the transactions "TotalTransactions" total number of transactions in this block "TransactionList" list of transaction IDs in this block - Possible options include:
-
BlockchainBase $BlockchainBase sets the blockchain and its network MaxItems All the maximum number of items to return - BlockchainBlockData can access the bloxberg blockchain. To specify this network, use the BlockchainBase option.
- The setting for MaxItems specifies the maximum number of transactions to include in the result.
Examples
open all close allBasic Examples (5)
Get information about a block from the bloxberg blockchain using its height:
BlockchainBlockData[4565556, BlockchainBase -> "Bloxberg"]//DatasetUse a block hash to get information about a bloxberg block:
BlockchainBlockData["9cf1066e73dad4377b4f75171927f0cc7c095834d85b56348fcddddeb50808d9", BlockchainBase -> "Bloxberg"]//DatasetGet multiple bloxberg blocks by providing a list of heights or block hashes:
BlockchainBlockData[{1, 123456, "07828285d1c6bb0d6355fe8b786d8a161777ee5982ad74deb4f29b01b65a9b34"}, BlockchainBase -> "Bloxberg"]//DatasetGet a property from an bloxberg block:
BlockchainBlockData[500000, "BlockHash", BlockchainBase -> "Bloxberg"]Get multiple properties from a bloxberg block:
BlockchainBlockData[6000000, {"Timestamp", "ValidatorAddress", "PreviousBlockHash"}, BlockchainBase -> "Bloxberg"]Scope (13)
BlockHash (1)
BlockNumber (1)
Confirmations (1)
GasLimit (1)
GasUsed (1)
MerkleRoot (1)
PreviousBlockHash (1)
Size (1)
Timestamp (1)
TotalTransactions (1)
TransactionList (1)
ValidatorAddress (1)
Options (2)
BlockchainBase (1)
Applications (2)
Get the size of the latest bloxberg block in megabytes:
UnitConvert[BlockchainBlockData[-1, "Size", BlockchainBase -> "Bloxberg"], "Megabytes"]//NGet a random transaction included in a bloxberg block:
RandomChoice[BlockchainBlockData[5000000, "TransactionList", BlockchainBase -> "Bloxberg"]]Possible Issues (2)
Nonexistent Hashes (1)
Using a block hash that does not exist in the blockchain will return a Missing output:
blxBlockHash = BlockchainBlockData[-1, "BlockHash", BlockchainBase -> "Bloxberg"]BlockchainBlockData[StringJoin[RandomSample[Characters[blxBlockHash]]], BlockchainBase -> "Bloxberg"]Incorrect Hashes (1)
Providing a block hash that is not a hex number will return a $Failed output:
BlockchainBlockData["6h6h6h6h", BlockchainBase -> "Bloxberg"]Related Guides
History
Introduced in 2020 (12.1)
Text
Wolfram Research (2020), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-bloxberg.html.
CMS
Wolfram Language. 2020. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-bloxberg.html.
APA
Wolfram Language. (2020). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-bloxberg.html
BibTeX
@misc{reference.wolfram_2026_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-bloxberg.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2020}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-bloxberg.html}, note=[Accessed: 13-June-2026]}