Blockchain and Cryptocurrencies

The Wolfram Language is your passport to the world of blockchain and cryptocurrencies.



The Wolfram Language has built-in capabilities for interacting with blockchains. It can both retrieve detailed information from Bitcoin, Ethereum and other blockchains and construct and submit transactions to blockchains.

Get information about a transaction from the Bitcoin blockchain:
Find the top five holders of a Tezos token:
BlockchainTokenData[<|"Name"->"Quipuswap Liquidating kUSD"|>,"HolderList",BlockchainBase->"Tezos",MaxItems->5]//Dataset
Get information about a transaction from the Ethereum blockchain:


Analysis and Visualization

In addition to retrieving blockchain data, the Wolfram Language allows you to easily access financial data, including cryptocurrency prices.

Plot the price of Bitcoin over a period of time:
DateListPlot[FinancialData["BTC/USD", {{2022, 1, 1}, {2022, 7, 1}}]]

You can also execute some kinds of transactions, like sending Ether.

1. Check current sender balance: Use BlockchainAddressData to check your balance and transaction count.
ds=Dataset[BlockChainAddressData[(*sender address*),BlockchainBase->{"Ethereum","Testnet"}]]
2. Create the transaction object: Use BlockchainTransaction to build the transaction object using the preceding transaction count.
ethTXSign=BlockchainTransaction[<|"BlockchainBase"->{"Ethereum","Testnet"},"TransactionCount"->ds["TransactionCount"],"Address"->(*destination address*),"Amount"->Quantity[0.002,"Ether"],"GasPrice"->Quantity[1,"Wei"]|>]
The transaction exists locally until it is submitted to the Ethereum blockchain. 3. Sign the transaction: Use BlockchainTransactionSign to sign the transaction with the private key.
ethTXSign = BlockchainTransactionSign[ethTX, "CAAB89C53A5C8344E7AD79C4EE99B764DDA09F7B1083779470F6C14CA919757D"]
4. Submit the transaction: Use BlockchainTransactionSubmit to send the transaction to the blockchain.
ethTXSubmit = BlockchainTransactionSubmit[ethTxSign]
After the transaction is submitted, you must wait for it to be included in a block. The block can then be mined and added to the blockchain.

Get Started

Learning Resources

Learning Paths

Learn how to interact with blockchains

If you want to start interacting with blockchains using Wolfram Language, this class will show you the latest features for reading and writing data to blockchains.

Go to the class now! Includes sample notebook
Explore blockchain functionalities in our study group sessions

This series introduces you to blockchain and covers cryptography, governance and bridges and ends expanding on “the oracle problem.”

Go to the study group series! About 5 hours for completion
Go to the class now! Includes sample notebook
Go to the study group series! About 5 hours for completion

Recommended Product

Consulting Services

Go Further with Blockchain

Let us help you build your blockchain project

Wolfram Blockchain Labs can help make your project a reality. Our powerful codebase, extensive data and R&D expertise have been used by ARK, Cardano, IPFS, Filecoin and more for:

  • DLT ecosystem tools
  • Consulting on decentralized projects
  • Blockchain analytics
Learn more