These are chat archives for Nethereum/Nethereum

28th
May 2016
Matt.Tan
@mtbitcoin
May 28 2016 19:51
is there sample code on how to use library to get proposals from theDao?
Dim abi = "[{ ""consta" ..........}]"
Dim contractAddress = "0xbb9bc244d798123fde783fcc1c72d3bb8c189413"
Dim contract = web3.Eth.GetContract(abi, contractAddress)
Response.Write("Anwer: " & contract.GetFunction("proposals")) ..
Juan Blanco
@juanfranblanco
May 28 2016 19:54
Haven't looked at the abi, you can use the code generator to get you started but it is c#
Juan Blanco
@juanfranblanco
May 28 2016 20:02
Either way you are doing it right
Matt.Tan
@mtbitcoin
May 28 2016 20:09
which "code generator" are you referring to ?
The above returns "Nethereum.Web3.Function".
Matt.Tan
@mtbitcoin
May 28 2016 20:13
thanks. will take a look
Juan Blanco
@juanfranblanco
May 28 2016 20:13
Ah from the function you can execute a call or a transaction
Is a good sample
Matt.Tan
@mtbitcoin
May 28 2016 20:19
when i do something like response.write(contract.GetFunction("totalSupply").tostring() --> i get "Nethereum.Web3.Function"
Juan Blanco
@juanfranblanco
May 28 2016 20:20
That gets the function request
You will need to CallAsync