BlockchainContractValue
Versions for specific blockchains »BlockchainContractValue[caddr]
gets the result obtained from a Wolfram expression contract at blockchain address caddr.
BlockchainContractValue[caddr,prop]
gets the property prop of the result obtained from a Wolfram expression contract with address caddr.
BlockchainContractValue[caddr,func]
calls the function func of a contract with address caddr.
BlockchainContractValue[caddr,assoc]
calls a contract with address caddr with the properties defined in Association assoc.
Details and Options
- BlockchainContractValue has option BlockchainBase with default value $BlockchainBase.
- BlockchainContractValue extracts a contract from a blockchain, then runs the specified function in it. It cannot write data to a blockchain; this requires BlockchainTransactionSubmit.
Examples
Basic Examples (6)
Verify the total supply of OmiseGo tokens using its address:
Check the balance of OMG tokens of a certain holder:
Check the auction of CryptoKitty with Token ID 883551:
Call the function owner, given an address:
Get the storage of the USDtz Tezos token contract:
Get the total supply of tokens of the USDtz token contract using an annotation:
Text
Wolfram Research (2019), BlockchainContractValue, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainContractValue.html.
CMS
Wolfram Language. 2019. "BlockchainContractValue." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BlockchainContractValue.html.
APA
Wolfram Language. (2019). BlockchainContractValue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainContractValue.html