BlockchainBlockData (for Bitcoin Cash)
BlockchainBlockData["hash"]
gives information about the block with the specified hash on the Bitcoin Cash blockchain.
gives information about block n on the Bitcoin Cash blockchain.
gives information about the block n elements from the end of the Bitcoin Cash blockchain.
BlockchainBlockData[bspec,prop]
gives the specified property of the block.
Details
- BlockchainBlockData[-1] gives information on the latest Bitcoin Cash block.
- Properties include:
-
"BlockHash" hash of this block "BlockNumber" number (height) of this block in the Bitcoin Cash blockchain "Timestamp" time when this block was mined "Amounts" amount information for this block "Size" size of this block in bytes "Nonce" nonce used in the hash for this block "Version" version of the block "Confirmations" number of confirmations "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 - "Amounts" gives an association with the following properties as its keys:
-
"BlockReward" reward for mining this block "TotalFee" sum of all the fees in this block's transactions "TotalInput" sum of all the input amounts in this block's transactions "TotalOutput" sum of all the output amounts in this block's transactions - Possible options include:
-
BlockchainBase $BlockchainBase sets the blockchain and its network MaxItems All the maximum number of items to return - BlockchainBlockData can access the Bitcoin Cash mainnet (default) and testnet. To specify these networks, 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 (6)
Get information about a block from the Bitcoin Cash blockchain using its height:
Get the latest block of the Bitcoin Cash testnet blockchain:
Use a block hash to get information about a Bitcoin Cash block:
Get multiple Bitcoin Cash blocks by providing a list of heights or block hashes:
Scope (12)
Options (3)
Applications (3)
History
Text
Wolfram Research (2024), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-BitcoinCash.html.
CMS
Wolfram Language. 2024. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-BitcoinCash.html.
APA
Wolfram Language. (2024). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-BitcoinCash.html
BibTeX
@misc{reference.wolfram_2026_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-BitcoinCash.html}", note=[Accessed: 28-January-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2024}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-BitcoinCash.html}, note=[Accessed: 28-January-2026]}