BlockchainBlockData (for Tezos)
BlockchainBlockData["blockid"]
gives information about the block with the specified block ID on the Tezos blockchain.
gives information about block n on the Tezos blockchain.
gives information about the block n elements from the end of the Tezos blockchain.
BlockchainBlockData[bspec,prop]
gives the specified property of the block.
Details
- BlockchainBlockData[-1] gives information on the latest Tezos block.
- Properties include:
-
"BlockHash" hash of this block "BlockNumber" number (height) of this block in the Tezos blockchain "PreviousBlockHash" hash of the previous block "Protocol" protocol of this block "NextProtocol" protocol of next block "Timestamp" time when this block was baked "ValidationPass" number of validation passes "OperationsHash" hash of a list of root hashes of Merkle trees of operations "Fitness" metric used to compare contexts "ContextHash" hash of the state of the context after application of this block "Priority" position in the priority list of delegates at which the block was baked "Nonce" proof-of-work nonce used when baking this block "Signature" signature of the baking delegate of this block "ConsumedGas" total gas consumed in this block "Proposer" the delegate that proposed this block "Baker" the delegate that baked this block "BlockReward" reward for baking this block "BlockFees" sum of all the fees in this block's operations "TotalTransactions" total number of operations in this block "TransactionList" list of operation hashes in this block "TransactionListDetails" list of operation hashes in this block grouped by operation type - Possible options include:
-
BlockchainBase $BlockchainBase sets the blockchain and its network MaxItems All the maximum number of items to return - BlockchainBlockData can access the Tezos mainnet (default) and testnet (Shadownet). To specify these networks, use the BlockchainBase option.
- The setting for MaxItems specifies the maximum number of operations to include in the result.
Examples
open all close allBasic Examples (6)
Get information about a block from the Tezos blockchain using its height:
BlockchainBlockData[850000, BlockchainBase -> "Tezos"]//DatasetUse a block hash to get information about a Tezos block:
BlockchainBlockData["BMEQvLUsx54v5iGLe2BvLPPvH368BGhhc7FjRgZv3BsxPRQBbE4", BlockchainBase -> "Tezos"]//DatasetGet the latest block of the Tezos testnet blockchain:
BlockchainBlockData[-1, BlockchainBase -> {"Tezos", "Testnet"}]//DatasetGet multiple Tezos blocks by providing a list of heights or hashes:
BlockchainBlockData[{2, 123456, "BMEQvLUsx54v5iGLe2BvLPPvH368BGhhc7FjRgZv3BsxPRQBbE4"}, BlockchainBase -> "Tezos"]//DatasetGet a property from a Tezos block:
BlockchainBlockData[500000, "Baker", BlockchainBase -> "Tezos"]Get multiple properties from a Tezos block:
BlockchainBlockData[500000, {"Timestamp", "Protocol", "PreviousBlockHash"}, BlockchainBase -> "Tezos"]Scope (21)
Baker (1)
BlockFees (1)
BlockHash (1)
BlockNumber (1)
BlockReward (1)
ConsumedGas (1)
ContextHash (1)
Fitness (1)
NextProtocol (1)
Nonce (1)
OperationsHash (1)
PreviousBlockHash (1)
Priority (1)
Proposer (1)
Protocol (1)
Signature (1)
Timestamp (1)
TotalTransactions (1)
TransactionList (1)
TransactionListDetails (1)
Options (3)
BlockchainBase (2)
Mainnet (1)
Applications (1)
Possible Issues (2)
Nonexistent Hashes (1)
Using a block ID from one blockchain in another blockchain will return a Missing output:
TezosBlockID = BlockchainBlockData[-1, "BlockHash", BlockchainBase -> "Tezos"]BlockchainBlockData[TezosBlockID, BlockchainBase -> {"Tezos", "Testnet"}]Incorrect Hashes (1)
Providing an invalid block ID will return a $Failed output:
BlockchainBlockData["6h6h6h6h", BlockchainBase -> "Tezos"]Related Guides
History
Introduced in 2020 (12.2)
Text
Wolfram Research (2020), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html.
CMS
Wolfram Language. 2020. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html.
APA
Wolfram Language. (2020). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html
BibTeX
@misc{reference.wolfram_2026_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html}", note=[Accessed: 29-April-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2020}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html}, note=[Accessed: 29-April-2026]}