These are chat archives for Nethereum/Nethereum

27th
Sep 2017
Juan Blanco
@juanfranblanco
Sep 27 2017 05:59
@Ru_Murillo_twitter of course doh
but you can still use use web3
and create another contract instance with just the abi methods you need
or just create a new service all together
@radWorx yes in version 2.0.0 to manage Geth mining you need Nethereum.Geth (another package if not using portable) and the Web3Geth class
Juan Blanco
@juanfranblanco
Sep 27 2017 06:10
  public string ExtendedAbi = @"[{""inputs"":[{""indexed"":false,""name"":""message"",""type"":""string""}],""name"":""Error"",""type"":""event""}]";

        public Contract GetExtendedContract()
        {
            return Web3.Eth.GetContract(ExtendedAbi, Contract.Address);
        }

        public Event GetErrorEvent()
        {
            return GetExtendedContract().GetEvent("Error");
        }
@Ru_Murillo_twitter ^^^^
Quick mock up
radWorx
@radWorx
Sep 27 2017 12:35
@juanfranblanco Got it! Thank you! did this...var web3 = new Nethereum.Geth.Web3Geth();
Ok, Using Nethereum.Geth, var web3 = new Web3Geth();
Thats better.
Juan Blanco
@juanfranblanco
Sep 27 2017 12:57
:+1:
Ruben Murillo
@Ru_Murillo_twitter
Sep 27 2017 16:15
Yep! You're right, @juanfranblanco. That's how I solved it :smile: thanks!
Juan Blanco
@juanfranblanco
Sep 27 2017 16:16
:fire:
Chandra Sekhar
@tcsekhar
Sep 27 2017 18:02

I used the sample project - FunctionDTO as a class library in a C# console app and it works perfectly fine. But when I include the same class in a C# ASP.NET web application, it doesn't get past the "web3.Eth.DeployContract.SendRequestAsync" call - it just hangs in there for ever - no error.

Is there a working example which works through ASP.NET code behind/backend when submitting a contract and getting the results?

is that ok?
Chandra Sekhar
@tcsekhar
Sep 27 2017 18:15
cool. I will try this. Thank you!
same sample in "classic" mvc net461
Fernando Garcia
@fergarrui
Sep 27 2017 19:47
Hi Juan, I want to use Nethereum with Unity and I am facing some issues. I saw you have an Unity version, is there any guide to install it in Unity? E.g., using Nethereum.JsonRpc.UnityClient is failing when I try to use it installed from NuGet. Thanks!
Juan Blanco
@juanfranblanco
Sep 27 2017 20:24
yes you have to use dlls in the release page
compiled for unity3d
Juan Blanco
@juanfranblanco
Sep 27 2017 20:29
check the Netherum.Unity.zip
Fernando Garcia
@fergarrui
Sep 27 2017 20:52
Yes, I was blind! Tried it and is working, thanks a lot!