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.


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 takes the following options:
-
BlockchainBase $BlockchainBase blockchain and network to use MaxItems 20 maximum number of items to return - 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
open all close allBasic 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:
History
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
BibTeX
@misc{reference.wolfram_2025_blockchaincontractvalue, author="Wolfram Research", title="{BlockchainContractValue}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainContractValue.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_blockchaincontractvalue, organization={Wolfram Research}, title={BlockchainContractValue}, year={2019}, url={https://reference.wolfram.com/language/ref/BlockchainContractValue.html}, note=[Accessed: 18-August-2025]}