These are chat archives for Nethereum/Nethereum

30th
Dec 2017
Sebastian Giro
@SebastianGiro
Dec 30 2017 00:43
Yes, I think it can control the execution order, the problem is, if you create the exact transaction, without modifying the nonce, and the transaction is still not mined for too low gas or problems, it will throw you an error like "There is a transaction with too low gas, modify the gas or change the nonce", or something like that. So you will not be able to create a transaction like that without modifying it. I think web3 handle this automatically
It's a little hard to explain
Basically, the nonce should change between transactions or the network will treat it like the same transaction if the hash its the same.
That's why I need to change the nonce, because I need to send 3 transactions exactly the same.
garyng2000
@garyng2000
Dec 30 2017 05:34
yes that is what juan's sample shown, just get the # of transaction submitted by the 'from' address and increment it(sort of) and this is one of the property of a transactioninput object. To 'resend', it needs to be treated as a new transaction i.e. the nonce changed. basically every transaction through to the pool needs to be unique in terms of from + nonce combination. But why a count rather than guid(which is how I do with nonce when I am doing other when it said 'nonce'), I have no idea
Juan Blanco
@juanfranblanco
Dec 30 2017 06:05
@garyng2000 @SebastianGiro there is an order requirement, you may have more than one transaction waiting in the pool. the guid would not help in that situation. Also there is an issue on replay attacks, you will need to validate if that guid has been used before in the whole history for that address
but yeah the "nonce" name is rather confusing
I guess it might have been a historic reason, which it prevents the replay attack, and end up being used as an ordering mechanism
Juan Blanco
@juanfranblanco
Dec 30 2017 09:09
@tritao some heads up
I have started the pub sub (not for websockets) but it should be the same.
Mainly there is going to be a specific Geth and Parity requests, these are based on the usual rpc requests
Parity and Geth they are different on implementations so a there will be specfic subscriber clients per each "client"
each subscriber client (ipc will windows, unix base and then extended for parity, geth)
extensions will manage the queue of subscriptions, removal of subscriptions etc
and overall the handle of identitication of messages and method calling
clients will be instantiated started and managed by the users
Juan Blanco
@juanfranblanco
Dec 30 2017 09:14
RX will be better as an extension on top
once this is all there adding websockets will be just extensions of socket implementations for the different clients
I may have something Monday / Tuesday out depending on family commitments
Juan Blanco
@juanfranblanco
Dec 30 2017 09:57
Actually I just realized is New Years Eve tomorrow, it will take longer :)
Michael Herman (Toronto)
@mwherman2000
Dec 30 2017 12:26
Is there a way to get list of transactions for a specific (from) address? ...without having to scan the whole blockchain
How do you code the Web3() constructor to connect to mainnet?
ahmad molaie
@molaie
Dec 30 2017 12:48
Hi All. I'm going to use blockcypher API, to sign and send a Tx to Eth. is there any function inside nethereum helping me?
Also, i found this question answered by Juan, but it seems that it is not my case, and my case is another one in Stackoverflow
Juan Blanco
@juanfranblanco
Dec 30 2017 14:47
@mwherman2000 parity provides trace filter, it has been implemented in Nethereum
Juan Blanco
@juanfranblanco
Dec 30 2017 15:05
For mainnet if connecting to Indira use Https://mainnet.infura.io
Juan Blanco
@juanfranblanco
Dec 30 2017 15:52
@molaie using the offline transaction manager you should be able to send the raw transaction signed
Michael Herman (Toronto)
@mwherman2000
Dec 30 2017 16:26
@juanfranblanco Where can I learn more about the trace filter functionality in Nethereum?
@juanfranblanco RE: connecting to Https://mainnet.infura.io. What port do I specify? ...is it still 8545?
Michael Herman (Toronto)
@mwherman2000
Dec 30 2017 16:50
Web3 web3 = new Web3("https://mainnet.infura.io:8545"); ...works
garyng2000
@garyng2000
Dec 30 2017 17:09
@juanfranblanco and the order requirement is what confuse me, the other side is like @SebastianGiro said, nonce for most people with coding experience would expect it to be just random number which you have explained probably was initially the intend.
Back to the order thing, since my transactions have the potential of minted by different miners at different times, the 'order' as in nonce is nothing more than 'preferred' rather than guaranteed. So what is the usage scenario of order if it is not guaranteed ?
Chris Misztur
@cmisztur
Dec 30 2017 17:14
sorry if this has been asked before... is there a unity webgl metamask js plugin available?
Chris Misztur
@cmisztur
Dec 30 2017 17:45
digging into flappy bird code...
Chris Misztur
@cmisztur
Dec 30 2017 17:56
looking at the web3 api (https://github.com/ethereum/wiki/wiki/JavaScript-API), does Nethereum have the same functionality?
Juan Blanco
@juanfranblanco
Dec 30 2017 19:11
@mwherman2000 yes they have that port mapped too. The best is to register anyway, you will be given a personal token https://infura.io/signup
@cmisztur yes from the outset
It is the same functionality
Just use it the same as Web3
Juan Blanco
@juanfranblanco
Dec 30 2017 19:16
@cmisztur unity webgl metamask that is what the flappy sample does, check the blog post
It includes references to both code and unity external
Maximilian Weber MWC
@CineTekDev_twitter
Dec 30 2017 20:14
it is not possible to return an array of structs right now am I correct? In my case it looks like I am forced to return an array of IDs and then return each struct one by one...
JEN
@chukwuemekanweke
Dec 30 2017 21:44
I can't seem to get this event and filters example to work on my machine. I'm using Testrpc
The log always returns a count of 0
Michael Herman (Toronto)
@mwherman2000
Dec 30 2017 21:53
@juanfranblanco Does the TraceTransaction functionality only work with a Parity node? ...or will it work with a geth node?