/// <summary> /// Retrieves the current owners of the multisig contract. /// </summary> /// <param name="web3">The web3 interface instance to use.</param> /// <param name="contractAddress">The address of the deployed multisig wallet contract.</param> /// <returns>A list of owner accounts represented as strings.</returns> public static async Task <List <string> > GetOwnersAsync(Web3 web3, string contractAddress) { var getOwnersFunctionMessage = new GetOwnersFunction() { }; IContractQueryHandler <GetOwnersFunction> ownerHandler = web3.Eth.GetContractQueryHandler <GetOwnersFunction>(); List <string> owners = await ownerHandler.QueryAsync <List <string> >(contractAddress, getOwnersFunctionMessage).ConfigureAwait(false); return(owners); }
public Task <List <string> > GetOwnersQueryAsync(GetOwnersFunction getOwnersFunction, BlockParameter blockParameter = null) { return(ContractHandler.QueryAsync <GetOwnersFunction, List <string> >(getOwnersFunction, blockParameter)); }