These are chat archives for Nethereum/Nethereum

14th
Sep 2017
ChinhP
@Chinh-P
Sep 14 2017 07:47

hello, I try to follow the first Nethereum app ever (basically following this video: https://www.youtube.com/watch?v=Yir_nu5mmw8) but it's keep throw an error whenever it hit the line:
var unlockAccountResult = await web3.Personal.UnlockAccount.SendRequestAsync(senderAddress, password, 120);
Full code as maybe you all read it already

[TestMethod]
        public async Task ShouldBeAbleToDeployAContract()
        {
            var senderAddress = "0x68dff740f7af1923da08501c92d58bf4737a0e97";
            var password = "myPassWord";

            var abi = @"[{""constant"":false,""inputs"":[{""name"":""val"",""type"":""int256""}],""name"":""multiply"",""outputs"":[{""name"":""d"",""type"":""int256""}],""payable"":false,""type"":""function""},{""inputs"":[{""name"":""multiplier"",""type"":""int256""}],""payable"":false,""type"":""constructor""}]";
            var byteCode =
                "0x60606040523415600b57fe5b6040516020806100ac83398101604052515b60008190555b505b6079806100336000396000f300606060405263ffffffff60e060020a6000350416631df4f14481146020575bfe5b3415602757fe5b60306004356042565b60408051918252519081900360200190f35b60005481025b9190505600a165627a7a72305820ec2cf1c300fa92e0ccd1f5ce518cc43c9578fe9007797024f1424d07f491020a0029";
            var multiplier = 7;

            var web3 = new Web3();
            //var web3Geth = new Web3Geth();

           ** var unlockAccountResult =
                await web3.Personal.UnlockAccount.SendRequestAsync(senderAddress, password, 120);**

            Assert.IsTrue(unlockAccountResult);

            var transactionHash =
                await web3.Eth.DeployContract.SendRequestAsync(abi, byteCode, senderAddress, new HexBigInteger(250000),
                    multiplier);

            var mineResult = await web3.Miner.Start.SendRequestAsync(6);
            //var mineResult = await web3.Miner.Start.SendRequestAsync(6);

            Assert.IsTrue(mineResult);

            var receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash);

            while (receipt == null)
            {
                Thread.Sleep(5000);
                receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash);
            }

            var contractAddress = receipt.ContractAddress;
            var contract = web3.Eth.GetContract(abi, contractAddress);

            var multiplyFunction = contract.GetFunction("multiply");

            var result = await multiplyFunction.CallAsync<int>(7);

            Assert.AreEqual(49, result);
        }

the error message is

Test method UnitTest.TestNethereumMyCoin.ShouldBeAbleToDeployAContract threw exception: 
System.MissingMethodException: Method not found: '!!0 EdjCase.JsonRpc.Client.RpcResponseExtensions.GetResult(EdjCase.JsonRpc.Core.RpcResponse, Boolean)'.
    at Nethereum.JsonRpc.Client.RpcRequestResponseHandler`1.<SendRequestAsync>d__7.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
   at Nethereum.JsonRpc.Client.RpcRequestResponseHandler`1.SendRequestAsync(Object id, Object[] paramList)
   at Nethereum.RPC.Personal.PersonalUnlockAccount.<SendRequestAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at UnitTest.TestNethereumMyCoin.<ShouldBeAbleToDeployAContract>d__5.MoveNext() in O:\RFR_2015\EHub-NewFeatures\Reza-Branch\UnitTest\TestNethereumMyCoin.cs:line 98
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Is there any of you face this error before. And how to fix. Thanks
note: I already deploy the test.sol to local (and try to azure blockchain too) using truffle and using truffle I can interact with it well
in local, Im using testrpc
Juan Blanco
@juanfranblanco
Sep 14 2017 07:53
Testrpc does not have personal unlock
@ChinhPLQ ^^
This is specific to Geth
@Ru_Murillo_twitter ill add that as an extension method
ChinhP
@Chinh-P
Sep 14 2017 07:57

@juanfranblanco Yes, I did try to remove the personal unlock too, the new code become

[TestMethod]
        public async Task ShouldBeAbleToDeployAContract()
        {
            var senderAddress = "0x68dff740f7af1923da08501c92d58bf4737a0e97";
            //var password = "myPassWord";

            var abi = @"[{""constant"":false,""inputs"":[{""name"":""val"",""type"":""int256""}],""name"":""multiply"",""outputs"":[{""name"":""d"",""type"":""int256""}],""payable"":false,""type"":""function""},{""inputs"":[{""name"":""multiplier"",""type"":""int256""}],""payable"":false,""type"":""constructor""}]";
            var byteCode =
                "0x60606040523415600b57fe5b6040516020806100ac83398101604052515b60008190555b505b6079806100336000396000f300606060405263ffffffff60e060020a6000350416631df4f14481146020575bfe5b3415602757fe5b60306004356042565b60408051918252519081900360200190f35b60005481025b9190505600a165627a7a72305820ec2cf1c300fa92e0ccd1f5ce518cc43c9578fe9007797024f1424d07f491020a0029";
            var multiplier = 7;

            var web3 = new Web3();
            //var web3Geth = new Web3Geth();

            //var unlockAccountResult =
            //    await web3.Personal.UnlockAccount.SendRequestAsync(senderAddress, password, 120);

            //Assert.IsTrue(unlockAccountResult);

            var transactionHash =
                await web3.Eth.DeployContract.SendRequestAsync(abi, byteCode, senderAddress, new HexBigInteger(250000),
                    multiplier);

            var mineResult = await web3.Miner.Start.SendRequestAsync(6);
            //var mineResult = await web3.Miner.Start.SendRequestAsync(6);

            Assert.IsTrue(mineResult);

            var receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash);

            while (receipt == null)
            {
                Thread.Sleep(5000);
                receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash);
            }

            var contractAddress = receipt.ContractAddress;
            var contract = web3.Eth.GetContract(abi, contractAddress);

            var multiplyFunction = contract.GetFunction("multiply");

            var result = await multiplyFunction.CallAsync<int>(7);

            Assert.AreEqual(49, result);
        }

And the same error message throw at line
var transactionHash = await web3.Eth.DeployContract.SendRequestAsync(abi, byteCode, senderAddress, new HexBigInteger(250000), multiplier);

Error message still is

Test method UnitTest.TestNethereumMyCoin.ShouldBeAbleToDeployAContract threw exception: 
System.MissingMethodException: Method not found: '!!0 EdjCase.JsonRpc.Client.RpcResponseExtensions.GetResult(EdjCase.JsonRpc.Core.RpcResponse, Boolean)'.
    at Nethereum.JsonRpc.Client.RpcRequestResponseHandler`1.<SendRequestAsync>d__7.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
   at Nethereum.JsonRpc.Client.RpcRequestResponseHandler`1.SendRequestAsync(Object id, Object[] paramList)
   at Nethereum.RPC.Eth.Transactions.EthSendTransaction.SendRequestAsync(TransactionInput input, Object id)
   at Nethereum.Web3.DeployContract.SendRequestAsync(String abi, String contractByteCode, String from, HexBigInteger gas, Object[] values)
   at UnitTest.TestNethereumMyCoin.<ShouldBeAbleToDeployAContract>d__5.MoveNext() in O:\RFR_2015\EHub-NewFeatures\Reza-Branch\UnitTest\TestNethereumMyCoin.cs:line 103
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Juan Blanco
@juanfranblanco
Sep 14 2017 07:59
you missing a reference
to EdjCase.JsonRpc.Client.
(i believe)
Move to 2.0.0-rc7
it will be better
ChinhP
@Chinh-P
Sep 14 2017 08:03
oh, Ok, let me try
Juan Blanco
@juanfranblanco
Sep 14 2017 08:04
there are some structural changes, but that is the current version
so better be there that in 1.0.6
ChinhP
@Chinh-P
Sep 14 2017 08:05
Ok, thank Juan, I will try and update the result
Juan Blanco
@juanfranblanco
Sep 14 2017 08:05
Oh no bother, let me know how it goes
are those "dapple" projects related to dapple?
or something completely different
ChinhP
@Chinh-P
Sep 14 2017 08:08
actually, no, just an old project
completely different
Juan Blanco
@juanfranblanco
Sep 14 2017 08:08
ah ok :)
ChinhP
@Chinh-P
Sep 14 2017 08:08
:)
Juan, the Miner has been remove from web3 lib
Juan Blanco
@juanfranblanco
Sep 14 2017 08:09
oh yes
ChinhP
@Chinh-P
Sep 14 2017 08:09
so, where is it in the new one
Juan Blanco
@juanfranblanco
Sep 14 2017 08:10
you need to use Nethereum.Geth
but if using testrpc
you dont need to
ChinhP
@Chinh-P
Sep 14 2017 08:10
Ok
wonderful, It works :smile:
Thank Juan
Juan Blanco
@juanfranblanco
Sep 14 2017 08:14
awesome :)
Art1987
@Art1987
Sep 14 2017 09:58
Hi guys, I wonder is it possible to create ethereum wallet programmatically? if yes, could you please assist me how to do it. Thank you in advance
kai
@kaista82_twitter
Sep 14 2017 09:59
Art yes, you can using nethereum and you should start at https://nethereum.readthedocs.io/en/latest/
Juan Blanco
@juanfranblanco
Sep 14 2017 09:59
Check the keystore
Art1987
@Art1987
Sep 14 2017 10:00
thank you, I will check it out
amjadDev
@amjadDev
Sep 14 2017 10:01
{"jsonrpc":"2.0","method":"txpool_content","params":[],"id":67}
Art1987
@Art1987
Sep 14 2017 10:01
thanks, but I need the api to create new wallet account
amjadDev
@amjadDev
Sep 14 2017 10:01
{"jsonrpc":"2.0","id":67,"error":{"code":-32601,"message":"The method txpool_content does not exist/is not available"}}
geting this error while trying to read mempool tx
@juanfranblanco
kai
@kaista82_twitter
Sep 14 2017 10:01
amjad, if you're sure thats the right method, make sure your daemon has that part enabled
probably need admin as part of the enabled service on daemon or something similar
@Art1987
and @amjadDev what @kaista82_twitter said :)
kai
@kaista82_twitter
Sep 14 2017 10:03
;)
amjadDev
@amjadDev
Sep 14 2017 10:03
found this here
Juan Blanco
@juanfranblanco
Sep 14 2017 10:04
yes
amjadDev
@amjadDev
Sep 14 2017 10:04
but not listed on rpc method
Juan Blanco
@juanfranblanco
Sep 14 2017 10:04
oh.. then I have not added it yet
Art1987
@Art1987
Sep 14 2017 10:04
thanks @juanfranblanco
Juan Blanco
@juanfranblanco
Sep 14 2017 10:04
if connecting to geth you can use
amjadDev
@amjadDev
Sep 14 2017 10:05
yes i m triyng to acess this using fiddler
but method does not exist
kai
@kaista82_twitter
Sep 14 2017 10:05
amjaddev are you after pending tx's?
too
@amjadDev have you enabled it when you start geth?
amjadDev
@amjadDev
Sep 14 2017 10:07
no just using txpool_content @kaista82_twitter
kai
@kaista82_twitter
Sep 14 2017 10:08
amjadDev, sorry maybe I should clarify, for what purpose, what data do you want
I ask because there are more standardised ways to get pending tx's
and if thats all you want i can give you code
if not, yeah you'll need to make sure the daemon is exposing them via rpc/ipc
Art1987
@Art1987
Sep 14 2017 10:09
@juanfranblanco thanks, I appreciate your help
Juan Blanco
@juanfranblanco
Sep 14 2017 10:09
@amjadDev make sure your --rpcapi includes the 'txpool'
when you start geth
amjadDev
@amjadDev
Sep 14 2017 10:10
for pending transaction before they get mine in block @kaista82_twitter
kai
@kaista82_twitter
Sep 14 2017 10:10
    public async Task<Nethereum.RPC.Eth.DTOs.Transaction[]> GetPendingTransactions()
    {
        var _blockParameter = new BlockParameter();
        _blockParameter.SetValue(BlockParameter.BlockParameterType.pending);
        var _block = await _web3.Eth.Blocks.GetBlockWithTransactionsByNumber.SendRequestAsync(_blockParameter);

        return _block.Transactions;
    }
    public async Task<HexBigInteger> GetPendingTransactionCount()
    {
        var _blockParameter = new BlockParameter();
        _blockParameter.SetValue(BlockParameter.BlockParameterType.pending);
        var _count = await _web3.Eth.Blocks.GetBlockTransactionCountByNumber.SendRequestAsync(_blockParameter);

        return _count;
    }
amjadDev
@amjadDev
Sep 14 2017 10:10
@juanfranblanco
@amjadDev make sure your --rpcapi includes the 'txpool'
when you start geth
kai
@kaista82_twitter
Sep 14 2017 10:11
two ways, i think there is actually a get transactions function too, im getting the block + tx's there
amjadDev
@amjadDev
Sep 14 2017 10:11
how?
@kaista82_twitter thanks let me try his
kai
@kaista82_twitter
Sep 14 2017 10:11
if you cant get txpool then try those
just as a backup
Juan Blanco
@juanfranblanco
Sep 14 2017 10:11
that is the standard way
kai
@kaista82_twitter
Sep 14 2017 10:11
and there are pure tx functions too but i did block before i noticed so havent updated yet
Juan Blanco
@juanfranblanco
Sep 14 2017 10:12
using pending
kai
@kaista82_twitter
Sep 14 2017 10:13
txpool standard or the block method
Juan Blanco
@juanfranblanco
Sep 14 2017 10:13
the block method
that is compatible with parity
amjadDev
@amjadDev
Sep 14 2017 10:14
geth --testnet --rpc --rpcaddr "localhost" --rpccorsdomain "*" --rpcapi="web3" --rpcport 8545 this is how i have enabled my geth node
Juan Blanco
@juanfranblanco
Sep 14 2017 10:14
as it is part of the eth "namespace"
ok your are missing the extra management apis
ie.. personal, txpool, admin, etc
kai
@kaista82_twitter
Sep 14 2017 10:16
--rpcapi web3,eth,personal,staker,net,txpool,shh something like that
amjadDev
@amjadDev
Sep 14 2017 10:22
okay
geting this
{"jsonrpc":"2.0","id":67,"result":{"pending":{},"queued":{}}}
see
ms
seem
s
kai
@kaista82_twitter
Sep 14 2017 10:25
well the rpc side looks like its working
amjadDev
@amjadDev
Sep 14 2017 10:25
seems pending list is empty
kai
@kaista82_twitter
Sep 14 2017 10:25
did you kick of a tx immediately before?
amjadDev
@amjadDev
Sep 14 2017 10:26
this pending list will be only tx list that shooted from my node or from others node too?
@kaista82_twitter no
kai
@kaista82_twitter
Sep 14 2017 10:26
your node
afaik
amjadDev
@amjadDev
Sep 14 2017 10:27
what i have to do to catch other node tx too
@kaista82_twitter
kai
@kaista82_twitter
Sep 14 2017 10:27
oh
thats why you wanted txpool, it wont be accurate
amjadDev
@amjadDev
Sep 14 2017 10:28
yes
kai
@kaista82_twitter
Sep 14 2017 10:28
juan may know more about this
amjadDev
@amjadDev
Sep 14 2017 10:28
@juanfranblanco
kai
@kaista82_twitter
Sep 14 2017 10:29
if you're running full node that command before should work
but not sure why it woudnt the rpc is working
amjadDev
@amjadDev
Sep 14 2017 10:33
seems its working for other node tx too i have not shooted any transaction but got this
{"jsonrpc":"2.0","id":67,"result":{"pending":{"0x001b62bb0d72c5aae7ed95346f60d6c5e625c5f8":{"15957":{"blockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":null,"from":"0x001b62bb0d72c5aae7ed95346f60d6c5e625c5f8","gas":"0xe57e0","gasPrice":"0x37e11d600","hash":"0x5b6b7fa06f1cd100a0f11444db93c85442db3ca42b8befdf8b81815e9c25b787","input":"0xd912ced000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","nonce":"0x3e55","to":"0x5fc931e9e05f7eb3396d9e8b8a740a340ffc5efd","transactionIndex":"0x0","value":"0x0","v":"0x29","r":"0xc1afa8a70081a2d23651d142dc9b7aec1c5f6ddce244738dc7c3d5185d64da46","s":"0x76a53e8141820ca9547614b484f896034a2ce5dbf813e17495e7fe98df3adca5"},"15958":{"blockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":null,"from":"0x001b62bb0d72c5aae7ed95346f60d6c5e625c5f8","gas":"0xe57e0","gasPrice":"0x37e11d600","hash":"0x6fc9d4c80e61887ff34bbb35cddf6b2a0e073a5bb85ddeffbf1dae3d5a4c2b80","input":"0xd912ced000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","nonce":"0x3e56","to":"0x5fc931e9e05f7eb3396d9e8b8a740a340ffc5efd","transactionIndex":"0x0","value":"0x0","v":"0x2a","r":"0x5b042dfc3ae18e2863ee05c28094113c0d94f3a8876df4318bd535dde1adf8a","s":"0x1664411ceabea018f7324f4d6dbd710f14a7aaa2a567c9bb2bcdee686245c1e4"},"15959":{"blockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":null,"from":"0x001b62bb0d72c5aae7ed95346f60d6c5e625c5f8","gas":"0xe57e0","gasPrice":"0x37e11d600","hash":"0x75b1b91f5821814d57313bdd73dd51fac91e1369033cc24927dc2d396055992c","input":"0xd912ced000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","nonce":"0x3e57","to":"0x5fc931e9e05f7eb3396d9e8b8a740a340ffc5efd","transactionIndex":"0x0","value":"0x0","v":"0x2a","r":"0x5d65944e5b4cab7ce38709ff65f32c7d4bfb6fef0a0d34392465d44aa3a6f97","s":"0x5b6216e5cf487f21ce317b97676e559e051fe75b66d77b524fe7bb88ebdcd20"}},"0x1183de7fd37f820d010dd81129ddc387b1a14fb0":{"74":{"blockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":null,"from":"0x1183de7fd37f820d010dd81129ddc387b1a14fb0","gas":"0x15f90","gasPrice":"0x37e11d600","hash":"0xc6b5a9b28ebc1c8991b6f49b7de4766cc7f8c36cc96abc02db7b83b9ada30df5","input":"0x14a436b00000000000000000000000000000000000000000000000000000000000000003","nonce":"0x4a","to":null,"transactionIndex":"0x0","value":"0x0","v":"0x29","r":"0x68a3ae4199ed63df8768e66413d161f42094b72a33ddae4cea36d8990981f69d","s":"0x5098664563d9718e1db2f208c4a3be40799c905d008727f50d5f8fd536a7ed6"}},"0x1a5d20e3957fd0b89eabf1bb95c76ab71d846ab3":{"67761":{"blockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":null,"from":"0x1a5d20e3957fd0b89eabf1bb95c76ab71d846ab3","gas":"0x186a0","gasPrice":"0x37e11d600","hash":"0x34413573426e2d5f81c6a1b1668f996c5bffede888aed59fb91b8a5de72dd04c","input":"0xb6e4d4d8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000026494e56253246323031373039313425324658564949253246495825324631303430363938343000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007313634343933300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063539333139370000000000000000000000000000000000000000000000000000","nonce":"0x108b1","to":"0x5f81dc51bdc05f4341afbfa318af5d82c607acad","transactionIndex":"0x0","value":"0x8e1bc9bf0400","v":"0x29","r":"0x485af99dad77d5bd2484efc585721273b4f17886916c2d0889aa552b5e481e3d","s":"0x5c9a4e05bd0c0790a2283bc
correct me if m wrong
using this method
{"jsonrpc":"2.0","method":"txpool_content","params":[],"id":67}
kai
@kaista82_twitter
Sep 14 2017 10:40
seems ok
showing what you've got in your pool from them
it wont scan them i dont think, it will show whats been passed to you so you can pick which go into a block and attempt to mine
or echo them through the network
amjadDev
@amjadDev
Sep 14 2017 10:41
okay
for now i need to capture acctivity happend on my listedd address and can notify user asap just like ethersacan showing pending transaction when we track recent tx before any confirmation.
kai
@kaista82_twitter
Sep 14 2017 10:51
Juan made something where you can sync blocks and put into azure, may be better
but thats not pending
so disregard that
lol
Art1987
@Art1987
Sep 14 2017 10:51
@juanfranblanco how to verify my etherium wallet that has been created via KeyStorePbkdf2Service?
Juan Blanco
@juanfranblanco
Sep 14 2017 10:52
unencrypt it ?
copy and paste it in your keystore folder in geth
Art1987
@Art1987
Sep 14 2017 10:53
is it test wallet or live? I have tried Keystore File via myetherwallet.com got an exception
Juan Blanco
@juanfranblanco
Sep 14 2017 10:53
use my ether wallet to decrypt the file
what exception you got
amjadDev
@amjadDev
Sep 14 2017 10:54
image.png
Juan Blanco
@juanfranblanco
Sep 14 2017 10:54
wallet files just contain your private key
amjadDev
@amjadDev
Sep 14 2017 10:54
@kaista82_twitter
just chekd a tx from pool on etherscan
Juan Blanco
@juanfranblanco
Sep 14 2017 10:54
so no matter live, main, or anything
Art1987
@Art1987
Sep 14 2017 10:54
Please enter a valid password. Error: Unsupported parameters to PBKDF2
Juan Blanco
@juanfranblanco
Sep 14 2017 10:54
what version of nethereum are you using?
Move to 2.0.0 rc7
Art1987
@Art1987
Sep 14 2017 10:55
I am using Nethereum.KeyStore 1.03 and Nethereum.Web3 1.0.6
Juan Blanco
@juanfranblanco
Sep 14 2017 10:56
move everything to 2.0.0 rc7
Art1987
@Art1987
Sep 14 2017 10:57
ok
kai
@kaista82_twitter
Sep 14 2017 10:57
amjaddev, i suppose your best chances are what you're doing to be fair, you wont get the entire pool all the time, noone will I dont think but the more connections you have the better
Juan Blanco
@juanfranblanco
Sep 14 2017 10:59
but thats not pending
yes, there are lots of improvements for the Azure blockchain storage
kai
@kaista82_twitter
Sep 14 2017 11:00
oh ofcourse, its just not confirmed
but its mined?
use tx pool for none mined items, compare block number with current height = confirmations, 0 = pending for mined items
is that how that site works?
Art1987
@Art1987
Sep 14 2017 12:09
guys, I have created private key, how to fill my wallet?
Juan Blanco
@juanfranblanco
Sep 14 2017 12:10
mining
allocating ether at genesis
kai
@kaista82_twitter
Sep 14 2017 12:10
faucet if on testnet
Juan Blanco
@juanfranblanco
Sep 14 2017 12:11
depends on your needs
Art1987
@Art1987
Sep 14 2017 12:11
I want to test it, I want to check if wallet exists and fill my wallet
Juan Blanco
@juanfranblanco
Sep 14 2017 12:12
i think it will help if you read
Art1987
@Art1987
Sep 14 2017 12:12
ok, I will try
your "wallet file" / key store file
stores your private key
your private key is used to calculate your public key and then address
your address it is what you need to use to get some ether (if using a faucet)
using your private key you generated before
use the Account object (as per the docs)
and get your address
Art1987
@Art1987
Sep 14 2017 12:15
I see thank you
Juan Blanco
@juanfranblanco
Sep 14 2017 12:16
once you know your address you can pick any of the testnets faucets (good point @kaista82_twitter ) and get some test ether
do not reveal anyone your private key (it is private :) ) and anybody with access to it can get all your funds, identity, etc
Art1987
@Art1987
Sep 14 2017 12:18
:D I see
if you create your own testnet you can also use this prebuilt faucet
Art1987
@Art1987
Sep 14 2017 12:21
FYI, ecKey.GetPrivateKeyAsBytes sometimes generate 33 length byte array
I have tried to get 2.0.0 rc7 version from nuget but I was not able. maybe I should get it from github
Juan Blanco
@juanfranblanco
Sep 14 2017 12:22
use the pre release
Art1987
@Art1987
Sep 14 2017 12:23
where should I obtain pre release? guthub?
kai
@kaista82_twitter
Sep 14 2017 12:44
nuget is easier
Art1987
@Art1987
Sep 14 2017 12:46
there is no pre release in nuget :)
Art1987
@Art1987
Sep 14 2017 12:47
I was talking about Nethereum.KeyStore
aah, my fault I should update Nethereum.Web3
thanks, sorry for confusion
kai
@kaista82_twitter
Sep 14 2017 13:37
click "include prereleases"