BlockchainBlockData (for Cardano)
BlockchainBlockData["blockid"]
gives information about the block with the specified block ID on the Cardano blockchain.
gives information about block n on the Cardano blockchain.
gives information about the block n elements from the end of the Cardano blockchain.
BlockchainBlockData[bspec,prop]
gives the specified property of the block.
Details
- BlockchainBlockData[-1] gives information on the latest Cardano block.
- Properties include:
-
"BlockHash" hash of this block "BlockNumber" number (height) of this block in the Cardano blockchain "Confirmations" number of confirmations "PreviousBlockHash" hash of the previous block "Timestamp" time when this block was produced "TotalFee" sum of all the fees in this block's transactions "Size" size in bytes for this block "VerificationKey" block producer verification key "OperationalCertificate" block producer operational certificate "ProtocolVersionEndorsement" version of the protocol that this particular block producer is prepared to move to "EpochNumber" epoch number for this block "SlotNumber" slot number for this block "SlotInEpoch" slot number for this block relative to the beginning of the epoch "SlotLeader" block producer information "TotalTransactions" total number of operations in this block "TransactionList" list of operation hashes in this block - "SlotLeader" gives an association with the following properties as its keys:
-
"Hash" hash of the pool that produced this block "Description" description of the pool that produced 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 Cardano mainnet (default) and testnet "preprod", which is a new network for testing purposes. To specify these networks, use the BlockchainBase option.
- The setting for MaxItems specifies the maximum number of transactions to include in the result.Esc
Examples
open all close allBasic Examples (6)
Get information about a block from the Cardano blockchain using its height:
BlockchainBlockData[6130250, BlockchainBase -> "Cardano"]//DatasetUse a block hash to get information about a Cardano block:
BlockchainBlockData["2aa5719698c694dbde2694ffd23712a0bef518a8602e3b273764244dd7db4835", BlockchainBase -> "Cardano"]//DatasetGet the latest block of the Cardano testnet blockchain:
BlockchainBlockData[-1, BlockchainBase -> {"Cardano", "Testnet"}]//DatasetGet multiple Cardano blocks by providing a list of heights or hashes:
BlockchainBlockData[{1, 123456, "c608615af5365d4c82f77977095f8840029d28b37a4e3986196ef8f3d1c20d65"}, BlockchainBase -> "Cardano"]//DatasetGet a property from a Cardano block:
BlockchainBlockData[500000, "EpochNumber", BlockchainBase -> "Cardano"]Get multiple properties from a Cardano block:
BlockchainBlockData[6130232, {"Timestamp", "TotalFee", "SlotLeader"}, BlockchainBase -> "Cardano"]Scope (15)
BlockHash (1)
BlockNumber (1)
Confirmations (1)
EpochNumber (1)
OperationalCertificate (1)
ProtocolVersionEndorsement (1)
Size (1)
SlotInEpoch (1)
SlotLeader (1)
SlotNumber (1)
Timestamp (1)
TotalFee (1)
TotalTransactions (1)
TransactionList (1)
Options (3)
BlockchainBase (2)
Mainnet (1)
Applications (1)
Get the fees included in a Cardano block:
blockFees = BlockchainBlockData["2aa5719698c694dbde2694ffd23712a0bef518a8602e3b273764244dd7db4835", "TotalFee", BlockchainBase -> "Cardano"]Convert the result to fiat currency:
CurrencyConvert[blockFees, "PeruvianSoles"]Possible Issues (2)
Nonexistent Hashes (1)
Using a block ID from one blockchain in another blockchain will return a Missing output:
CardanoBlockID = BlockchainBlockData[-1, "BlockHash", BlockchainBase -> "Cardano"]BlockchainBlockData[CardanoBlockID, BlockchainBase -> {"Cardano", "Testnet"}]Incorrect Hashes (1)
Providing an invalid block ID will return a $Failed output:
BlockchainBlockData["6h6h6h6h", BlockchainBase -> "Cardano"]Neat Examples (1)
Related Guides
History
Introduced in 2021 (13.0)
Text
Wolfram Research (2021), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Cardano.html.
CMS
Wolfram Language. 2021. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Cardano.html.
APA
Wolfram Language. (2021). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Cardano.html
BibTeX
@misc{reference.wolfram_2026_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Cardano.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2021}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Cardano.html}, note=[Accessed: 13-June-2026]}