BlockchainBlockData (for Litecoin)
BlockchainBlockData["hash"]
gives information about the block with the specified hash on the Litecoin blockchain.
gives information about block n on the Litecoin blockchain.
gives information about the block n elements from the end of the Litecoin blockchain.
BlockchainBlockData[bspec,prop]
gives the specified property of the block.
Details
- BlockchainBlockData[-1] gives information on the latest Litecoin block.
- Properties include:
-
"BlockHash" hash of this block "BlockNumber" number (height) of this block in the Litecoin 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 Litecoin 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 Litecoin blockchain using its height:
BlockchainBlockData[123123, BlockchainBase -> "Litecoin"]//DatasetGet the latest block of the Litecoin testnet blockchain:
BlockchainBlockData[-1, BlockchainBase -> {"Litecoin", "Testnet"}]//DatasetUse a block hash to get information about a Litecoin block:
BlockchainBlockData["66c28c2cae70a8087d74b325ad90df112396c0bab9aa76a785344df191995029", BlockchainBase -> "Litecoin"]//DatasetGet multiple Litecoin blocks by providing a list of heights or block hashes:
BlockchainBlockData[{1, 123456, "66c28c2cae70a8087d74b325ad90df112396c0bab9aa76a785344df191995029"}, BlockchainBase -> "Litecoin"]//DatasetGet a property from a Litecoin block:
BlockchainBlockData[500000, "Timestamp", BlockchainBase -> "Litecoin"]Get multiple properties from a Litecoin block:
BlockchainBlockData[500000, {"Timestamp", "Nonce", "PreviousBlockHash"}, BlockchainBase -> "Litecoin"]Scope (12)
Amounts (1)
BlockHash (1)
BlockNumber (1)
Confirmations (1)
MerkleRoot (1)
Nonce (1)
PreviousBlockHash (1)
Size (1)
Timestamp (1)
TotalTransactions (1)
TransactionList (1)
Options (3)
BlockchainBase (2)
Mainnet (1)
Applications (3)
Get the size of the latest Litecoin block in megabytes:
UnitConvert[BlockchainBlockData[-1, "Size", BlockchainBase -> "Litecoin"], "Megabytes"]//NGet a random transaction included in a Litecoin block:
RandomChoice[BlockchainBlockData[-1, "TransactionList", BlockchainBase -> "Litecoin"]]Get information about a block's miner:
txList = BlockchainBlockData[420000, "TransactionList", BlockchainBase -> "Litecoin"];Extract the coinbase transaction ID:
coinbase = txList[[1]]miner = Lookup[BlockchainTransactionData[coinbase, "Outputs", BlockchainBase -> "Litecoin"][[1]], "Addresses"]//FirstGet information about the address:
BlockchainAddressData[miner, BlockchainBase -> "Litecoin"]//DatasetPossible Issues (2)
Nonexistent Hashes (1)
Using a block hash from one blockchain in another blockchain will return a Missing output:
ltcBlockHash = BlockchainBlockData[-1, "BlockHash", BlockchainBase -> "Litecoin"]BlockchainBlockData[ltcBlockHash, BlockchainBase -> {"Litecoin", "Testnet"}]Incorrect Hashes (1)
Providing a block hash that is not a hex number will return a $Failed output:
BlockchainBlockData["6h6h6h6h", BlockchainBase -> "Litecoin"]Related Guides
History
Introduced in 2024 (14.0)
Text
Wolfram Research (2024), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Litecoin.html.
CMS
Wolfram Language. 2024. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Litecoin.html.
APA
Wolfram Language. (2024). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Litecoin.html
BibTeX
@misc{reference.wolfram_2026_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Litecoin.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2024}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Litecoin.html}, note=[Accessed: 13-June-2026]}