BlockchainTransactionData[txid]
gives information about the blockchain transaction with ID txid on the blockchain specified by $BlockchainBase.
BlockchainTransactionData[txid,prop]
gives the specified property of the transaction.
BlockchainTransactionData
Versions for specific blockchains »BlockchainTransactionData[txid]
gives information about the blockchain transaction with ID txid on the blockchain specified by $BlockchainBase.
BlockchainTransactionData[txid,prop]
gives the specified property of the transaction.
Details and Options
- BlockchainTransactionData has the option BlockchainBase, with default setting $BlockchainBase.
Examples
open all close allBasic Examples (1)
Scope (3)
Multiple Blocks (1)
Get data from multiple transactions by providing a list of transaction IDs:
BlockchainTransactionData[{"2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6", "fe6c48bbfdc025670f4db0340650ba5a50f9307b091d9aaa19aa44291961c69f", "1024cb12a576b69defa67dbc2f1899700ab58e5ad3d5e058edefb907f59865bc"}]//DatasetSpecific Properties (2)
Single property (1)
Options (7)
Get information about a transaction from the Ethereum blockchain:
BlockchainTransactionData["a93bfdff6679bc38cfdcd16cc38e34513fa2ee97186864e22cac5723864cde13", BlockchainBase -> "Ethereum"]//DatasetGet information about a transaction from the ARK blockchain:
BlockchainTransactionData["6e269faccf4791e8c0a67be5c29cf888a6dc10f5217ad9ca993f61b0bf22c84e", BlockchainBase -> "ARK"]//DatasetGet information about a transaction from the bloxberg blockchain:
BlockchainTransactionData["46c3ff35046ce081ed2680a024b55dc51cf2867433443fc2fbb22e34bd517f36", BlockchainBase -> "Bloxberg"]//DatasetGet information about a transaction from the Tezos blockchain:
BlockchainTransactionData["ooi8iZ5jTdWEdT85WX6YL99jCqKJu4tuFnoMMu8BafggGTgh1oS", BlockchainBase -> "Tezos"]//DatasetGet information about a transaction from the Cardano blockchain:
BlockchainTransactionData["a26fbf37a65d541a74b393c4ca5a4cde61b340cb337a882e9df77a60bba449a4", BlockchainBase -> "Cardano"]//DatasetGet information about a transaction from the Litecoin blockchain:
BlockchainTransactionData["1bac27732ff97fb79b9f0864675c6bf172cc1d9e0999cca2419a16a39feff665", BlockchainBase -> "Litecoin"]//DatasetGet information about a transaction from the Bitcoin Cash blockchain:
BlockchainTransactionData["2b19a7287581da86de256536fb6ba1be1347bd6dd62a899e965b44374fdebfec", BlockchainBase -> "BitcoinCash"]//DatasetApplications (2)
Get information on the most recent Ethereum block:
block = BlockchainBlockData[-1, BlockchainBase -> "Ethereum"];Randomly select a transaction from this block:
txid = RandomChoice[block["TransactionList"]]Get detailed information for this transaction:
tx = BlockchainTransactionData[txid, BlockchainBase -> "Ethereum"];
Dataset[tx]Convert the transaction amount to fiat currency using the current price:
CurrencyConvert[Lookup[tx, "Amount"], "PeruvianSoles"]Get the inputs and outputs of a Bitcoin transaction:
btcInOut = BlockchainTransactionData["2f20c74a74e03e000392bf49c310212443347a78a54cef3fec8e77487682cf37", {"Inputs", "Outputs"}, BlockchainBase -> "Bitcoin"]Inspect the locking script of the inputs:
Lookup[btcInOut//First, "ScriptString"]//ColumnAnd the unlocking scripts of the outputs:
Lookup[btcInOut//Last, "ScriptString"]//ColumnPossible Issues (2)
Nonexistent Hashes (1)
Using a transaction ID from one blockchain in another blockchain will return a Missing["NotAvailable"] output:
btcTXID = RandomChoice[BlockchainBlockData[-1, "TransactionList", BlockchainBase -> "Bitcoin"]]BlockchainTransactionData[btcTXID, BlockchainBase -> "Bitcoin"]//DatasetBlockchainTransactionData[btcTXID, BlockchainBase -> "ARK"]Incorrect Hashes (1)
Providing an invalid transaction ID will return a $Failed output:
BlockchainTransactionData["6h6h6h6h", BlockchainBase -> "Bitcoin"]Neat Examples (1)
$BlockchainBase = "Bitcoin";Find the input script byte array for the coinbase transaction of block 416,236:
Lookup[BlockchainTransactionData[First[BlockchainBlockData[416236, "TransactionList"]], "Inputs"][[1]], "ScriptByteArray"]The raw bytes include some readable characters:
FromCharacterCode[Normal[%], "ASCII"]Related Guides
Related Workflows
- Create a Standard Transaction in Bitcoin
Text
Wolfram Research (2018), BlockchainTransactionData, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainTransactionData.html (updated 2019).
CMS
Wolfram Language. 2018. "BlockchainTransactionData." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/BlockchainTransactionData.html.
APA
Wolfram Language. (2018). BlockchainTransactionData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainTransactionData.html
BibTeX
@misc{reference.wolfram_2026_blockchaintransactiondata, author="Wolfram Research", title="{BlockchainTransactionData}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainTransactionData.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchaintransactiondata, organization={Wolfram Research}, title={BlockchainTransactionData}, year={2019}, url={https://reference.wolfram.com/language/ref/BlockchainTransactionData.html}, note=[Accessed: 13-June-2026]}