These are chat archives for Nethereum/Nethereum

20th
Mar 2018
Andres G. Aragoneses
@knocte
Mar 20 2018 05:28
@PriyankJani_twitter you need to replace KEY with your key
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 05:39
@knocte Thanks.. Let me check and get back to you..
That I Understand, replacing of KEY, but other than that, every works as it is or we need to do some changes in Nethreum setup we already have?
Juan Blanco
@juanfranblanco
Mar 20 2018 07:11
@PriyankJani_twitter yes everything will work the same, as long as you use your private key for signing
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:15
Thanks Jaun, I am starting with GetBalance, but i am facing error like below, I highly appreciate if you guide me.. "Error occurred when trying to send rpc requests(s)"
My Code is like this:
var web3 = new Nethereum_Fork.Web3.Web3("Infuralink with KEY");
var Balance = await web3.Eth.GetBalance.SendRequestAsync("Metamask address");
string BalanceString = Convert.ToString(Balance.Value);
return BalanceString;
Juan Blanco
@juanfranblanco
Mar 20 2018 07:19
yes that should be fine
you can try it without the key
check this workbook
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:23
But that give me error as i mentioned. Do i need to sign this with private key? I am not sure just asking.
Juan Blanco
@juanfranblanco
Mar 20 2018 07:25
no
querying can be done without signing
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:26
Ok, is there any other possibility, why I am getting error.
Juan Blanco
@juanfranblanco
Mar 20 2018 07:26
your address is incorrect
your firewall
check the workbook sample and see if that works
if you are behind a corporate network.. firewall might be an issue
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:28
I am running on my own dongle, so firewall is not issue. My address is correct infect I can check on etherscan, "0x795403D0e574B5aee744FBe3bAFc93Fdbc58598f" ropsten testnet.
let try with your example one.
Juan Blanco
@juanfranblanco
Mar 20 2018 07:29
you should not have any issue
apart from your computers firewall ;)
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:31
Ya, right.. I believe some references create problem otherwise everything seems good.
I tried with mainnet and address given in workbook, but still facing same issue.
Juan Blanco
@juanfranblanco
Mar 20 2018 07:34
what is your environment and what nuget version are you running?
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:34
VS 2015 is environment.
version is v4.0.30319
Juan Blanco
@juanfranblanco
Mar 20 2018 07:36
oh i mean the nethereum nuget
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:38
1.0.0.0 I believe
Yes, I have very older one. Not uploaded since many days. so version is 1.0.0
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 07:55
Hey @juanfranblanco Thanks Buddy...
Finally it works, Only problem was versioning.. I was using old version. I uploaded to new and problem solved.
Again Thanks..
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 10:28
Hey @juanfranblanco, Does Infura support create address command? I am getting error "InnerException = {"Response status code does not indicate success: 405 (Method Not Allowed)."}" when executing below command.
var newAccount = await web3.Personal.NewAccount.SendRequestAsync("Test");
orelkabets
@orelkabets
Mar 20 2018 10:36
Hi All, Is there a way with Geth to monitor/trace "internal transaction" from contract ?
Juan Blanco
@juanfranblanco
Mar 20 2018 12:44
@PriyankJani_twitter no it doesnt you don't want infura to have your private keys
check the Accounts section in the docs
@orelkabets if you run debug you will see all the calls
Priyank Jani
@PriyankJani_twitter
Mar 20 2018 13:57
Hi, It resolved with "var key = Nethereum.Signer.EthECKey.GenerateKey();"
Christopher Franko
@chrisfranko
Mar 20 2018 21:54
Hey Juan, just seen some of your projects, and they are awesome.