From the course: Interacting with Blockchains in the Wolfram Language

Blockchain data

Thank you for joining us today. My name is Christian and I'm going to show you how to interact with different blockchains using the Wolfram Language. All right. So with the Wolfram Language, you can read and you can write the blockchain. So let me start with the read-only operations to you explain the different things you can do with it. All right. So let's start with BlockchainData. So BlockchainData is the most simple function we have to explore a blockchain. Most of these functions return an association. As you can see here. So when you want to See, it's usually useful to show this as a dataset. All right. So for example, in this case we have the Bitcoin blockchain. And here you can see some other properties about this blockchain. So it's a good opportunity to show the BlockchainBase option. So with the BlockchainBase option, you can specify which blockchain you want to connect with. So let's say if we choose the Ethereum blockchain. You'll see here the properties of this. You can see they're different from the Bitcoin blockchain. And we support many blockchains. And not only we support the maintenance, but also their testnet. So that's very useful because when you are doing experiments and you are making transactions and those kind of things, you don't want to use real money, so you can use the testnet or devnet like in the case of ARK. So again these are the blockchain we support, these are the Bitcoin, Ethereum, the ARK networks, both their mainnet and testnets. In the case of ARK, it's the devnet. And we just introduced the bloxberg blockchain. They only have a mainnet. So that's the thing we support. So when you want to specify the network, let's say ARK, you use this list as the syntax and you get the result here. Also if you go to our documentation, you'll see the details here and examples on how to use this. All right. So the BlockchainData function returns, as I was saying, general information about the different blockchains.

Contents