These are chat archives for Nethereum/Nethereum

Nov 2018
Juan Blanco
Nov 27 2018 14:54
@p0onage are you sorted? just got an email notification
Joshua Duxbury
Nov 27 2018 14:56
Hi Juan, I found you can import the keypass using "Nethereum.Web3.Accounts.Account.LoadFromKeyStoreFile" so I think i'm going in the right direction. Just trying to get the private key from the account now for signing offline
Yes sorted thanks Juan, Account has privateKey field sorry for that
Nov 27 2018 15:13
BlockParameter blockParameter = new BlockParameter(new HexBigInteger(4515820));
var balance = await web3.Eth.GetBalance.SendRequestAsync("0x0607897F3d07BCbFa3A10e7512563a598FbDB7C7", blockParameter);

Error message:
RpcResponseException: This request is not supported because your node is running with state pruning. Run with --pruning=archive.
at Nethereum.JsonRpc.Client.RpcClient.HandleRpcError(RpcResponseMessage response)

in test chain Ropsten

Nov 27 2018 18:01

@shareworlds - if you'd like to retrieve balance from a point of time in the past, an archive node would be needed. Newer versions of geth and parity prune state data by default to save space.

Now... I am wondering if it's possible to get historic balance from Etherscan's API. Hmm.

Nov 27 2018 22:40
We can get balance in some block height, but not all block height works.