These are chat archives for Nethereum/Nethereum

4th
Sep 2018
Lucas Cullen
@bitcoinbrisbane
Sep 04 2018 00:04 UTC
Hey @juanfranblanco, im having troubles with offline signing
It broadcasts fine via MEW. I get a tx hash back... then it disappears... any ideas?
Lucas Cullen
@bitcoinbrisbane
Sep 04 2018 02:58 UTC
Ok got it. Was bad nonce
Juan Blanco
@juanfranblanco
Sep 04 2018 09:38 UTC
@bitcoinbrisbane check this
it is a simpler version and does everything for you
deployment ^^
sign and send transaction
Trần Huy Duẫn
@DuanTranHuy
Sep 04 2018 14:02 UTC
@juanfranblanco do you have any plan to update this to .net core https://github.com/Nethereum/Nethereum.BlockchainStorage
Juan Blanco
@juanfranblanco
Sep 04 2018 14:43 UTC
it is happening ...
@Dave-Whiffin is adding .net core and sql server / lite support at the moment
Dave Whiffin
@Dave-Whiffin
Sep 04 2018 14:46 UTC
@DuanTranHuy - do you have a preferred db provider? We were thinking about cosmos next, but are open to suggestions?
Trần Huy Duẫn
@DuanTranHuy
Sep 04 2018 15:46 UTC
@Dave-Whiffin i think i will use the azure storage and not preffered another db provider but i have had an issue when i scan to a block on rinkeby your app read the number of tx difference with rinkeby.etherscan
and some block my app has been stopped because block error
Does it because of my node ?
Dave Whiffin
@Dave-Whiffin
Sep 04 2018 15:50 UTC
@DuanTranHuy - What block number on rinkeby has the transaction difference?
Trần Huy Duẫn
@DuanTranHuy
Sep 04 2018 16:36 UTC
wait me a bit i will check
Trần Huy Duẫn
@DuanTranHuy
Sep 04 2018 16:45 UTC
aw visual team services is downed
Ghostdreamer
@Ghostdreamer
Sep 04 2018 16:48 UTC
Hello, I really need some assistance with working with Nethereum, I have a really weird problem I just can't find a solution for, any chance I can get some help? I am willing to pay for your time, I just need to get this to work :(
Juan Blanco
@juanfranblanco
Sep 04 2018 17:36 UTC
@Ghostdreamer you will need to send the transaction hash from javascript to the unity code using interop in the same way
"unity code"
it is in the road map to create a very simple clean interface for metamask for both unity3d and blazor
(that includes this )
Ghostdreamer
@Ghostdreamer
Sep 04 2018 17:38 UTC
im not entirely sure how to go about doing that ... thats something id have to do from the website and not from within unity ?
if you look at the section
Calling Unity scripts functions from JavaScript
SendMessage('MyGameObject', 'MyFunction');
SendMessage('MyGameObject', 'MyFunction', 5);

SendMessage('MyGameObject', 'MyFunction', 'MyString');
Ghostdreamer
@Ghostdreamer
Sep 04 2018 17:44 UTC
alright, i will take a look and see if i can sort through that then, thank you so much, ive been bashing my head against it for a week now lol
Juan Blanco
@juanfranblanco
Sep 04 2018 17:45 UTC
hey this is why we are here :)
we may not have the answer.. but there is always good to try
also it is great feedback to add stuff
Ghostdreamer
@Ghostdreamer
Sep 04 2018 17:47 UTC
hehe yeah, im super excited about it
Juan Blanco
@juanfranblanco
Sep 04 2018 17:47 UTC
so in pseudocode steps...
(1) SendTransaction
but if you see the console.log, that will write back to unity
(2) have a yield check for transactionHash being written in your class
(3) Continuation from (1) SendMessage to the game object, which will write to your current txnhash variable
(4) As you are doing Poll for receipt :)
Ghostdreamer
@Ghostdreamer
Sep 04 2018 17:50 UTC
gonna try that right now, let you know how it works!!
Ghostdreamer
@Ghostdreamer
Sep 04 2018 18:01 UTC
SendTransaction: function (to, data) {
    var tostr = Pointer_stringify(to);
    var from = web3.eth.accounts[0];
    var datastr = Pointer_stringify(data);
    web3.eth.sendTransaction({from: from, to: tostr, data: datastr} , function(error, hash){  
        if(error){
            console.log(error);
        }
        else {
            console.log(hash);
            SendMessage("GameController","SetHash",hash);
        }
    }    
    );
.>
Ghostdreamer
@Ghostdreamer
Sep 04 2018 18:09 UTC
next on the list, make unity build webgl faster :p
Ghostdreamer
@Ghostdreamer
Sep 04 2018 18:15 UTC
kajsjhdfkjahsdfkjhas ty ty ty ty ty ty ty ty ty it wokrs!!! does the happy jig dance!
Juan Blanco
@juanfranblanco
Sep 04 2018 19:14 UTC
Cool @Ghostdreamer :)
alphasignal
@alphasignal
Sep 04 2018 19:50 UTC
@juanfranblanco could you some help please