Working with Blockchains

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. Wolfram maintains a MultiChain instance in the Wolfram Cloud that allows immediate blockchain storage and retrieval of arbitrary Wolfram Language expressions.

Accessing Blockchains

BlockchainData get current information about a blockchain

BlockchainBlockData get information about a particular block

BlockchainTransactionData get information about a transaction

BlockchainTokenData get information about the usage of a smart contractdefined token

BlockchainAddressData get information connected with a blockchain address

BlockchainBase option to specify blockchain and network ("Bitcoin", ...)

$BlockchainBase default blockchain and network to use

Key Management

GenerateAsymmetricKeyPair generate key pairs for blockchain transactions

PrivateKey  ▪  PublicKey

BlockchainKeyEncode encode a key to get an address, WIF, etc.

Blockchain Transactions

BlockchainTransaction symbolic representation of a blockchain transaction

BlockchainTransactionSign use a private key to sign a blockchain transaction

BlockchainTransactionSubmit submit a transaction for inclusion on a blockchain

Computational Contracts

BlockchainContractValue get a value from a contract (e.g. a function or Wolfram expression result)

Interacting with Blockchains in the Wolfram Cloud

BlockchainPut put data into the Wolfram-maintained blockchain

BlockchainGet get data from the Wolfram-maintained blockchain

Financial Information

CurrencyConvert conversions for bitcoin and other cryptocurrencies