From the course: Interacting with Blockchains in the Wolfram Language

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Blockchain contract value

Blockchain contract value

Another function that works just for Ethereum, well, Ethereum-based blockchains. It's the BlockchainContractValue function. So with this function you can call a specific function in a smart contract deployed to the Ethereum blockchain. So in this case, I have this contract here. And if you have seen the contract, if you have the code, you have seen that in Explorer, and you know the functions this contract has, like in this case, I'm going to use this address for the contract and I already know that this contract has a function called name that is of a string type. And if I run this function, what I'm doing is, calling that smart contract's function and returning its results. In this case, the contract which I only knew by its address, I now know that the name is Tronix because I'm calling this function that returns a name and I can do something like symbol. And this returns also its symbol provided by the smart contract. Again, this is fully documented. So I encourage you to check…

Contents