These are chat archives for Nethereum/Nethereum

5th
Jan 2018
yltlatl
@yltlatl
Jan 05 2018 02:21
I'm trying to do the Nethereum deploy contract sample on a private network I deployed via the Microsoft Azure marketplace. When I make the call (var transactionHash = await web3.Eth.DeployContract.SendRequestAsync(abi, byteCode, senderAddress, multiplier);) I get an exception "intrinsic gas too low". I tried setting geth --gasprice 0 on the miners, but that didn't do it. Any hints?
Juan Blanco
@juanfranblanco
Jan 05 2018 04:57
@CineTekDev_twitter The logs can be retrieved using GetLogs
Then you can decode them using the Event corresponding to the contract
You can also decode directly the logs from a transaction receipt
@nestforce it seems that you are using an account not matching the one in Web3 as from
@devedse every call uses the latest block as default you can pass a block number to get other state
Juan Blanco
@juanfranblanco
Jan 05 2018 05:03
On the workbook get started with smart contracts you can see an example right at the bottom
@DreamITSoftware that is planned for this quarter
@nvtaveras you don't have enough funds
On the testne
Chris Mack
@chrimack_twitter
Jan 05 2018 05:06
Ok, I feel like an idiot - but I just cannot get past the very first step here. I've tried setting up the tutorial using Geth, Ganache and the TestRPC runner - on both vs code on linux and Visual Studio on windows and I get the exact same result no matter what - the first call I make - the process exits with "dotnet.exe' has exited with code 0 (0x0)"
code literally this simple:
var web3 = new Nethereum.Web3.Web3("http://127.0.0.1:8546");
var balance = await web3.Eth.GetBalance.SendRequestAsync(address);
Juan Blanco
@juanfranblanco
Jan 05 2018 05:06
@yltlatl you need to increase the gas to deploy the contract
Chris Mack
@chrimack_twitter
Jan 05 2018 05:08
driving me crazy :) have all this working in truffle, but would really like to move it over to nethereum
Juan Blanco
@juanfranblanco
Jan 05 2018 05:08
@/all Happy New to everyone, I wish you all the best :)
Ganesh Prasad Kumble
@0zAND1z
Jan 05 2018 05:10
Thanks @juanfranblanco ! Hope this year brings more PRs to Nethereum and grow a big community 😊
Chris Mack
@chrimack_twitter
Jan 05 2018 06:33
further to this - the problem is with using await. if I change that to use .Result() instead - it works. Any comment on why this would be?
Chris Mack
@chrimack_twitter
Jan 05 2018 07:12
AND - only occurs if run from a console app. from a web app (or, I assume the demo's unit test app), works fine with await. super weird.
AlexandrSurkov
@AlexandrSurkov
Jan 05 2018 08:44
Hi guys
I have a question about nethereum and minig
it seems some API was changed
how to set etherbase using Netherium?
AlexandrSurkov
@AlexandrSurkov
Jan 05 2018 08:53
Or if I work in non interactive mode, mining process will be started on contract I unlocked?
Ganesh Prasad Kumble
@0zAND1z
Jan 05 2018 09:20
So, can we get a seed phrase for an existing ETH account using Nethereum? Can we do this during wallet creation or any time else? Pls help!
Any Xamarin Developers from India? Looking for some help :) :thumbsup:
Kirankumar
@kiranbasvaraj
Jan 05 2018 09:23
can we sign transactions with passphrase on nethereum
TarrahArshad
@TarrahArshad
Jan 05 2018 11:06
@juanfranblanco hi i can get free token ERC20 ?
dimonkov
@dimonkov
Jan 05 2018 11:33
@juanfranblanco ,
For some reason, all Nethereum requests fail on iOS 11.2.1, but work on Android and PC.
It's not because of code stripping(link.xml with all libraries added).
Backend - IL2CPP.
Juan Blanco
@juanfranblanco
Jan 05 2018 12:10
@chrimack_twitter console main entry is not awaitable, only from c# 7.1
TarrahArshad
@TarrahArshad
Jan 05 2018 12:11
@juanfranblanco hi i can get free token ERC20 ?
Juan Blanco
@juanfranblanco
Jan 05 2018 12:11
@TarrahArshad I don't understand
@dimonkov I have not tested it yet on 11.2.1
But in previous versions there was no problems
TarrahArshad
@TarrahArshad
Jan 05 2018 12:14
@juanfranblanco in testnet i can send ETH test but for token i unknow how to get free token my contract erc20 for test
and my contract is on mainnet and in testnet i can't see token for send all is zero
Juan Blanco
@juanfranblanco
Jan 05 2018 12:15
@kggp1995 you have the hd wallet if is that what you mean
If you create your token, you are the owner so you will have the total amount allocated to you. Check the solidity code you have used
@TarrahArshad ^
TarrahArshad
@TarrahArshad
Jan 05 2018 12:19
@juanfranblanco i know but my contract created in mainnet in mainnet i have all my coin but i testnet my balance is 0
Juan Blanco
@juanfranblanco
Jan 05 2018 12:20
Has it deployed successfuly?
TarrahArshad
@TarrahArshad
Jan 05 2018 12:20
yes
@juanfranblanco yes
@juanfranblanco in mainnet i have but i need in testnet
Juan Blanco
@juanfranblanco
Jan 05 2018 12:37
So you have deployed it in testnet? What testnet? Public one?
Can you see the code using GetCode?
ASoldo
@ASoldo
Jan 05 2018 13:32
Hello everyone
TarrahArshad
@TarrahArshad
Jan 05 2018 13:42
@juanfranblanco no i developed on mainnet
in testnet i can get balance is 0 but i no have a balance in owner account testnet
ASoldo
@ASoldo
Jan 05 2018 13:44
Is there a Nethereum Flappy as a complete Unity project to download? All that i found was scripts and i have some problems understanding how it all works from Unity? i did manage to show the balance, to make a transaction and to see it all on rinkeby.etherscan.io. but i dont know how BlockNumber script is working... I need help.
ahmad molaie
@molaie
Jan 05 2018 14:32
@juanfranblanco any news about your simple winform wallet?
Michael Herman (Toronto)
@mwherman2000
Jan 05 2018 14:37
@chrimack_twitter Try var web3 = new Nethereum.Web3.Web3("http://127.0.0.1:8545"); // port 8545
What is the reason people want to use Nethereum with Unity? ...what are the use cases?
dimonkov
@dimonkov
Jan 05 2018 14:57
@juanfranblanco ,
sorry for inconvenience, my bad.
It works flawlessly on a new version of Unity.
DreamITSoftware
@DreamITSoftware
Jan 05 2018 15:07
@juanfranblanco - Regarding SQL Nethereum.BlockchainStorage I would love to be a tester for that.
Juan Blanco
@juanfranblanco
Jan 05 2018 16:31
@molaie Next week I'll push something, just want to add the token trasfer, balance. Btw it is s simple spyke, but hopefully good enough to explain concepts. Later on that will be extracted (core MVVM, plus all hardened features, to its own library)
@ASoldo in the blog there is a link to the unity game sample, and tutorial. It is an awesome tutorial for unity
@dimonkov cool thanks
@mwherman2000
Use cases, games / vr
ahmad molaie
@molaie
Jan 05 2018 18:27
var web3 = new Web3("https://mainnet.infura.io/MYTOKENFROMINFURA");
var balance = await web3.Eth.GetBalance.SendRequestAsync("0x955E7b5a1bcbf8A77AEa8C7e2D6c1ABb155b5455");
//show it on a textbox
txtValue.Text = balance.Value.ToString();



var privateKey = "0x_PRIVATEKEY";
var senderAddress = "0x955E7b5a1bcbf8A77AEa8C7e2D6c1ABb155b5455";

var txCount = await web3.Eth.Transactions.GetTransactionCount.SendRequestAsync(senderAddress);

var f = Web3.Convert.ToWei(0.05m, EthUnit.Ether);

var encoded = Web3.OfflineTransactionSigner.SignTransaction(privateKey, "0xB10B50AEd3baE56b291413F17421c6E83e7d6462", f, txCount.Value);

var txId = await web3.Eth.Transactions.SendRawTransaction.SendRequestAsync("0x" + encoded);
txtHash.Text = txId;
Here, i'm connecting to infura mainnet with mytoken, and get the balance of an accoun, then send 0.05 eth from acc1, to acc2, and get the txId, but nothing appears on etherscan, what is the problem wih the code?
do i need to connect to any other infura networks?
Juan Blanco
@juanfranblanco
Jan 05 2018 19:46
That looks ok to me
This is now a simpler IMHO version
TarrahArshad
@TarrahArshad
Jan 05 2018 21:15
@juanfranblanco sametimes my code not work sametime workfine for get balance