BlockchainTransactionData (for Litecoin)
BlockchainTransactionData[txid]
gives information about the blockchain transaction with ID txid on the Litecoin blockchain.
BlockchainTransactionData[txid,prop]
gives the specified property of the transaction.
Details
- Properties include:
-
"TransactionID" transaction ID "BlockHash" hash of the block containing the transaction "BlockNumber" height of the block containing the transaction "Confirmations" blocks confirming the block containing the transaction "Timestamp" timestamp for the transaction "LockTime" earliest time or block when the transaction may be added "Version" transaction version number "TotalInput" total number of cryptocurrency associated with the inputs of this transaction "TotalOutput" total number of cryptocurrency associated with the outputs of this transaction "Fee" fee paid for this transaction "ByteCount" transaction size in bytes "Inputs" transaction input data "Outputs" transaction output data - The value of "Inputs" is a list of associations with typical elements including:
-
"TransactionID" hash of a previous transaction "Index" index within the previous transaction output "Amount" source amount "ScriptByteArray" script for the transaction as a byte array "ScriptString" script as a string "SequenceNumber" sequence number of this transaction "Addresses" public hashes for source addresses "SourceConfirmations" number of confirmations of the transaction generating this input - The value of "Outputs" is a list of associations with elements including:
-
"Amount" transferred amount "ScriptByteArray" script for the transaction as a byte array "ScriptString" script as a string "Addresses" public hashes for destination addresses "SpentQ" True if this output has been spent "DestinationTransaction" hash of the transaction that spent this output - BlockchainTransactionData can access the Litecoin mainnet (default) and testnet. To specify these networks, use the BlockchainBase option.
Examples
open all close allBasic Examples (4)
Get information about a transaction from the Litecoin blockchain:
BlockchainTransactionData["1bac27732ff97fb79b9f0864675c6bf172cc1d9e0999cca2419a16a39feff665", BlockchainBase -> "Litecoin"]//DatasetGet data from multiple Litecoin transactions by providing a list of transaction IDs:
BlockchainTransactionData[{"1bac27732ff97fb79b9f0864675c6bf172cc1d9e0999cca2419a16a39feff665", "8d96c7e2a7a9e9692238006b7d21063dc0ef6acdedcdc65627336c202df351e8", "7b175b6f6128d3fd9df3d35a4f38545a4798f5101d90e66a8628a21497978914"}, BlockchainBase -> "Litecoin"]//DatasetGet the amount included in a transaction's outputs:
BlockchainTransactionData["1bac27732ff97fb79b9f0864675c6bf172cc1d9e0999cca2419a16a39feff665", "TotalOutput", BlockchainBase -> "Litecoin"]Get multiple properties from a Litecoin transaction:
BlockchainTransactionData["1bac27732ff97fb79b9f0864675c6bf172cc1d9e0999cca2419a16a39feff665", {"Timestamp", "Confirmations", "Size"}, BlockchainBase -> "Litecoin"]Scope (13)
BlockHash (1)
BlockNumber (1)
Confirmations (1)
Fee (1)
Inputs (1)
LockTime (1)
Outputs (1)
Size (1)
Timestamp (1)
TotalInput (1)
TotalOutput (1)
TransactionID (1)
Get the transaction ID that matches the provided one:
txs = {"tx1" -> "1bac27732ff97fb79b9f0864675c6bf172cc1d9e0999cca2419a16a39feff665", "tx2" -> "8d96c7e2a7a9e9692238006b7d21063dc0ef6acdedcdc65627336c202df351e8" };BlockchainTransactionData["tx1" /. txs, "TransactionID", BlockchainBase -> "Litecoin"]Options (2)
BlockchainBase (2)
Mainnet (1)
Applications (1)
Get information on the most recent Litecoin block:
block = BlockchainBlockData[-1, BlockchainBase -> "Litecoin"];Randomly select a transaction from this block:
txid = RandomChoice[block["TransactionList"]]Get detailed information for this transaction:
tx = BlockchainTransactionData[txid, BlockchainBase -> "Litecoin"];
Dataset[tx]Convert the transaction output amount to fiat currency using the current price:
CurrencyConvert[Lookup[tx, "TotalOutput"], "PeruvianSoles"]Possible Issues (2)
Nonexistent Hashes (1)
Using a transaction ID from one blockchain in another blockchain will return a Missing output:
ltcTXID = RandomChoice[BlockchainBlockData[-1, "TransactionList", BlockchainBase -> "Litecoin"]]BlockchainTransactionData[ltcTXID, BlockchainBase -> "Litecoin"]//DatasetBlockchainTransactionData[ltcTXID, BlockchainBase -> {"Litecoin", "Testnet"}]Incorrect Hashes (1)
Providing a transaction ID that is not a hex number will return a $Failed output:
BlockchainTransactionData["6h6h6h6h", BlockchainBase -> "Litecoin"]Related Guides
History
Introduced in 2024 (14.0)
Text
Wolfram Research (2024), BlockchainTransactionData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionData-Litecoin.html.
CMS
Wolfram Language. 2024. "BlockchainTransactionData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionData-Litecoin.html.
APA
Wolfram Language. (2024). BlockchainTransactionData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionData-Litecoin.html
BibTeX
@misc{reference.wolfram_2026_blockchaintransactiondata, author="Wolfram Research", title="{BlockchainTransactionData}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionData-Litecoin.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchaintransactiondata, organization={Wolfram Research}, title={BlockchainTransactionData}, year={2024}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainTransactionData-Litecoin.html}, note=[Accessed: 12-June-2026]}