These are chat archives for Nethereum/Nethereum

30th
Jan 2018
Enigmatic
@EnigmaticUnreal_twitter
Jan 30 2018 03:10
image.png
Hey Juan - I think the above example is slightly out of date...
Couldn't find .ToHex() under GetPrivateKeyAsBytes(), and I think it's Nethereum.Web3.Accounts.Account(privateKey).
Did I catch that correctly...?
Juan Blanco
@juanfranblanco
Jan 30 2018 11:15
@PriyankJani_twitter is your call doing a value transfer?
@SteveWLCross_twitter depends on the version of the client
@EnigmaticUnreal_twitter oh you can use ToHex
Nethereum.Hex.HexConvertors.Extensions
you need to add that namespace for the extensions
but yes a byte[] also works with other overload
Art1987
@Art1987
Jan 30 2018 13:37
Hi guys,
I have written following code and it took over 30 sec to execute, could you please help me to improve and make it faster?
var estimate = await _web3.Eth.DeployContract.EstimateGasAsync(abi, byteCode, _account.Address, arguments);
var receipt = await _web3.Eth.DeployContract.SendRequestAndWaitForReceiptAsync(abi, byteCode, _account.Address, estimate, null, null, arguments);
@juanfranblanco do you have any idea? FYI, I am point to rinkby. Thanks
Jonathan Smirnoff
@jonathansmirnoff
Jan 30 2018 14:59
@juanfranblanco I wanted to know if there is any way to log the request that we do to the node from this library. It will be really useful to have it. Thanks!
Priyank Jani
@PriyankJani_twitter
Jan 30 2018 16:48
@juanfranblanco , yes i am trying to transfer value.
Enigmatic
@EnigmaticUnreal_twitter
Jan 30 2018 17:22
@juanfranblanco Oh dear. Sorry - I am so embarrassed. I indeed hadn't import the namespace for Hex. >_< My bad.
raderack3948
@raderack3948
Jan 30 2018 20:38
Does somebody know how I can only show the balance of transactions wich have a minimum of X confirmations in nethereum?
Jonathan Sheely
@jsheely
Jan 30 2018 21:58
Alright, I'm struggling to call a function on my smart contract. Using the Infura client.
I keep getting 405 Method Not Allowed as the inner exception

Any idea where I'm going wrong?

var contract = web3.Eth.GetContract(abi, contractAddress);
var registerUser = contract.GetFunction("registerUser");
var transaction = registerUser.CreateTransactionInput(platformAccount.Address, address, "0");
var request = await web3.Personal.SignAndSendTransaction.SendRequestAsync(transaction, platformPassword);

My guess is it's in the signing portion. And to my knowledge I can't do the whole unlockAccount function because Infura doesn't do that.