[英]How do I run this smart contract function using nethereum to return a result?
I followed a great article online to create a smart contract with CRUD operations. 我在网上关注了一篇很棒的文章,使用CRUD操作创建了智能合约。
This is the function I can't get working: 这是我无法使用的功能:
function getUserAtIndex(uint index)
public
constant
returns(bytes32 userKey)
{
return userIndex[index];
}
I've deployed the contract and can get the function using: 我已经部署了合同,可以使用以下命令获取功能:
var getUserAtIndex = contract.GetFunction("getUserAtIndex");
I want to know how I can use this to get the user details at that index by using that function? 我想知道如何使用该函数来使用该索引来获取该索引处的用户详细信息?
Thank You. 谢谢。
像这样吗
var result = getUserAtIndex.CallAsync<byte[]>(123);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.