These are chat archives for Nethereum/Nethereum

6th
Aug 2018
Zeshan Virk
@zeshanvirk
Aug 06 2018 07:03
Can we use Nethereum for Ethereum Classic integeration?
Juan Blanco
@juanfranblanco
Aug 06 2018 07:42
yes you can @zeshanvirk
Zeshan Virk
@zeshanvirk
Aug 06 2018 07:44
what is the main difference between ETC and ETH?
Juan Blanco
@juanfranblanco
Aug 06 2018 07:44
@spied001 the logs will be included in the receipt
(events) , you can decode them in 3.0.0-rc1 using the extension DecodeAllEvents<T>()
ETC is a fork of ETH, ETC does not share the same roadmap as ETH (and people) and for example will continue using PoW as opposed to PoS with Casper
nevertheless the standards are the same
for smart contracts etc
Zeshan Virk
@zeshanvirk
Aug 06 2018 07:48
is there a concept of smart contracts in etc too?
Juan Blanco
@juanfranblanco
Aug 06 2018 07:48
of course
that is the whole point of Ethereum :)
it forked after the DAO
this article explains a bit
Juan Blanco
@juanfranblanco
Aug 06 2018 08:24
@spied001 you need to have Byzantium enabled
Matt.Tan
@mtbitcoin
Aug 06 2018 09:49
I've been trying to get the sample code here to work Nethereum/Nethereum#279 , but don't seem to be getting the expected result
Cryt1c
@Cryt1c
Aug 06 2018 09:54
Hi,
what's the difference between GetAllChanges and GetFilterChanges when event logging? GetAllChanges gives me the event in the last mined block, while GetFilterChanges returns no event at all. What I would really need is to get all Events since the genesis block.
Any ideas? (I am using Ganache, which could be part of the problem, not sure though)
gm23
@DaChampR_twitter
Aug 06 2018 10:42
@juanfranblanco I'm signing my transactions with: Parity.Personal.SignAndSendTransaction.SendRequestAsync(txInput, tokenOwnerPassword), because I do not want to be bothered in the Parity-UI to confirm these transactions. Is there a way to get the nonce of this transaction then from the local tx queue?
Zeshan Virk
@zeshanvirk
Aug 06 2018 11:34
Nethereum isn't returning Transaction Confirmations count. How can i get tx confirmations? Etherscan shows us the confirmations too.
Juan Blanco
@juanfranblanco
Aug 06 2018 12:06
@Cryt1c GetAllChanges returns the logs for the filter provided, GetFilterChages since you created the filter
to get all changes from genesis (in geth) you will need to it in intervals
@mtbitcoin ill have a look later , any specific stuff you want to add?
Zeshan Virk
@zeshanvirk
Aug 06 2018 12:07
@juanfranblanco what about my question?
Juan Blanco
@juanfranblanco
Aug 06 2018 12:10
@DaChampR_twitter Note: if you use web3 with a ManagedAccount you will achieve the same
your nonce will be your transaction count, just retrieve it before you send the transaction
@zeshanvirk no Nethereum does not return that
you need to calculate it
the answer no need to wait
Trycoder
@Trycoder
Aug 06 2018 12:13
Hi,How can I transfer token from one account to another account in ethereum
Zeshan Virk
@zeshanvirk
Aug 06 2018 12:16
Ahh, Thanks.
Juan Blanco
@juanfranblanco
Aug 06 2018 12:17
:) mainly it is the number of blocks since that transaction
@Trycoder
Trycoder
@Trycoder
Aug 06 2018 12:18
is there any sample or link for the code @juanfranblanco
here ^^
actually it needs to be upgraded to the latest 3.0.0 rc1 (if you are using that..)
ill updgrade it shortly
Trycoder
@Trycoder
Aug 06 2018 12:20
3.0.0 rcl?
Juan Blanco
@juanfranblanco
Aug 06 2018 12:21
latest version of Nethereum
(but it should be the same)
Trycoder
@Trycoder
Aug 06 2018 12:21
ah ok
Juan Blanco
@juanfranblanco
Aug 06 2018 12:37
upgraded, some small syntax changes now
Cryt1c
@Cryt1c
Aug 06 2018 12:40
Thanks! Not sure though, what you mean by intervalls. Do you mean intervalls of blocknumbers?
My use case is: I have a multiple clients-one smart contract architecture. I am deploying a smart contract and I log events when certain functions get used.
On another client, I want to be able to use the already deployed smart contract and log all the events which have happened on the smart contract to keep the clients in sync. For this I am polling the events every second on each client.
Cryt1c
@Cryt1c
Aug 06 2018 12:52
I think I have found the solution to my issue:
newChangeRequestEventLog.CreateFilterInput(BlockParameter.CreateEarliest(), BlockParameter.CreateLatest());
I was using this without parameters and was assuming that this is the default configuration anyways.
Juan Blanco
@juanfranblanco
Aug 06 2018 13:27
i see, yep is the default configuration in 3.0.0-rc1
by intervals (I meant block ranges in certain periods of time)
also I have experienced in the past when the block range is too large geth does not return any values
so something to take into account
Cryt1c
@Cryt1c
Aug 06 2018 13:30
yeah, i was wondering if i filter from earliest to latest block if that is something that works on my testchain but would be highly problematic on a real network performance wise.
Matt.Tan
@mtbitcoin
Aug 06 2018 13:59
@juanfranblanco trying to get the latest pending transactions with nethereum. It appears to be setting up the filter correctly but i don't seem to be able to get any results back
Sergio Piedrahita
@spied001
Aug 06 2018 16:23
@juanfranblanco if I add the "byzantiumBlock": 0 part to the configuration file will I need to start with a new chain data, or will it be fine with the current chain data?