These are chat archives for Nethereum/Nethereum

6th
Dec 2017
CineTek
@CineTek
Dec 06 2017 02:23
hi when testing the blocknumber example in unity3d 2017.2 (non beta) I am getting this error in my browser: " No parameterless constructor defined for 'Nethereum.Unity.RpcModel.RpcParametersJsonConverter'."
Sean Finnegan
@cowtrix
Dec 06 2017 05:06
Heyo
I'm trying to build the DLLs for Unity3D, but no luck, loads of errors. Anyone think they can help?
Edson Alcalá
@EdsonAlcala
Dec 06 2017 06:44
@cowtrix what errors are you receiving?
Sean Finnegan
@cowtrix
Dec 06 2017 06:47
Opening up Nethereum 1.2.0 solution, Build > Build Solution (which is what I'm assuming I need to do to make the DLLs?)
get a million errors, I'll just them on pastebin
hmmm it's possible I don't actuall have the 0.4.5.1 .NET targeting pack
I'll install that and see if it fixes the issue
Edson Alcalá
@EdsonAlcala
Dec 06 2017 06:50
ok
Juan Blanco
@juanfranblanco
Dec 06 2017 07:42
@devedse yes that is what I meant (ha ha)
final step
@cowtrix use the release ones, on the release page
этот товарищ
@etot_tovarisch_twitter
Dec 06 2017 07:45
Sorry for silly question, but who defines gas price? Blockchain itself, particular node, or I can set it by myself and transaction will or not be mined depending on that?
Juan Blanco
@juanfranblanco
Dec 06 2017 07:46
you do need to have installed Unity between other things
but you should be able to compile out of the box
@etot_tovarisch_twitter you can set the gas price in the transaction, but if it is below the price, it might not be mined
or you will have to wait a long time
but overall the miners have an agreed price
(base price) then if you are in a high volume situation like an ICO race
then the transactions have a higher price so they can be included in the next block
этот товарищ
@etot_tovarisch_twitter
Dec 06 2017 07:56
Thanks!
этот товарищ
@etot_tovarisch_twitter
Dec 06 2017 09:52
Today I've faced another problem.. My code invokes contract like that "function.SendTransactionAndWaitForReceiptAsync(ethereumPublicKey, gas, value, null, new object[] { address, amount }).Wait();" and if no exceptions were thrown, current order marks completed in the database. But during yesterday ethereum load issue some of orders were sent few times. As far as I've understood, contract were executed in despite of exception "transaction underpriced". So my question is how can I get transaction Id from "SendTransactionAndWaitForReceiptAsync" and check if it's mined before retrying to push it?
Juan Blanco
@juanfranblanco
Dec 06 2017 10:56
@etot_tovarisch_twitter 2 options
  1. The receipt has the transaction hash so you can wait for that
(2). Use SendTransactionsAsync and do your own polling
mainly wait for the transaction to be mined
" As far as I've understood, contract were executed in despite of exception "transaction underpriced". "
I don't get that
CineTek
@CineTek
Dec 06 2017 11:56
@juanfranblanco which Version of Unity is required the moment? Does it have to be the beta release?
Juan Blanco
@juanfranblanco
Dec 06 2017 12:22
@CineTek The .net support is for 351, but I have tested on 5.6 and Beta
CineTek
@CineTek
Dec 06 2017 12:31
I'll try to test the beta version since the blocknumber request from the flappybird example does not work when built to WebGL
CineTek
@CineTek
Dec 06 2017 12:43
image.png
sadly the exact same issue when running BlockNumber.cs from the Nethereum repo in WebGL build (works fine in editor)
Juan Blanco
@juanfranblanco
Dec 06 2017 12:46
have you included the link files for the il2cpp ?
CineTek
@CineTek
Dec 06 2017 12:47
hmm I am using your medium post as a reference - are there other files than the nethereum dlls I have to include?
that is for webgl
mainly you dont want to strip all the dlls
ill update the post :)
CineTek
@CineTek
Dec 06 2017 12:49
uuuh I see
Juan Blanco
@juanfranblanco
Dec 06 2017 12:50
this is mainly the standard unity il2cpp stuff
ill update the post now
it will go in docs in the near future
CineTek
@CineTek
Dec 06 2017 12:52
thanks! Great job on Nethereum by the way I have used it in some smaller projects outside of Unity already
(and now it even works in WebGL which is a always a hassle to get something working in :D )
Juan Blanco
@juanfranblanco
Dec 06 2017 12:57
Thanks, don't get me started how painful that was :D
I have updated the blog post now. There is always something missing
Stefan Naegeli
@snaegeli
Dec 06 2017 13:10
Hi - I have question regarding the TransactionReceipt. I would like to query the Status field to see if the transaction was successful or not. But the field is null on failed as well as successful transactions. All other fields like BlockNumber, GasUsed, etc. are set. Shouldn't this field have a value after the transaction is mined?
Juan Blanco
@juanfranblanco
Dec 06 2017 14:01
Depends on what version you are using
This was introduced recently
CineTek
@CineTek
Dec 06 2017 14:07
Any chance of you sharing your internal metamask provider library as well? :smile:
Juan Blanco
@juanfranblanco
Dec 06 2017 14:26
oh there is no metamask provider
it is vanilla javascript
CineTek
@CineTek
Dec 06 2017 14:29
ah thanks! then in theory I should be able to use my existing solutions for dealing with metamask/parity : )
Juan Blanco
@juanfranblanco
Dec 06 2017 14:29
of course
Juan Blanco
@juanfranblanco
Dec 06 2017 14:38
updated the blog again :)
этот товарищ
@etot_tovarisch_twitter
Dec 06 2017 14:41
Does it mean that transaction has been mined, if GetTransactionByHash returns it correctly?
Juan Blanco
@juanfranblanco
Dec 06 2017 14:52
well, if it is pending
you won't get all the information like the BlockNumber
the transactionReceipt is what you want
этот товарищ
@etot_tovarisch_twitter
Dec 06 2017 15:03
I used this function.SendTransactionAndWaitForReceiptAsync ...Wait(); Without checking any result, just by not throwing an exception. For some reason few transaction threw exception and decided by my code to be failed, but still were pushed and mined.. (sorry for my awful english)
Stefan Naegeli
@snaegeli
Dec 06 2017 15:34
@juanfranblanco I am using version 2.1.0 - just updated recently and the Status field is null.
Juan Blanco
@juanfranblanco
Dec 06 2017 15:54
Oh I meant, based on the client
Stefan Naegeli
@snaegeli
Dec 06 2017 15:57
Geth/v1.7.2-stable-1db4ecdc/windows-amd64/go1.9
you need 1.7.3 or above
Stefan Naegeli
@snaegeli
Dec 06 2017 16:03
ah ok. thanks so much!