These are chat archives for Nethereum/Nethereum

18th
Dec 2018
Trycoder
@Trycoder
Dec 18 2018 05:51
@juanfranblanco I'm trying to provide my wordlist and wordcount in nethereum HD wallet
Juan Blanco
@juanfranblanco
Dec 18 2018 06:56
just provide the wordlist, that should be enough
@Trycoder
ameerkahiri
@ameerkahiri
Dec 18 2018 08:01
Does Nethereum support on Android?
Because I get "unknown error" from exception message, even just polling for get account balance.
ameerkahiri
@ameerkahiri
Dec 18 2018 08:09
I'm using Nethereum v2.2.1 for Unity3D. It works on Windows when I tested it before built. But when I run on Android, it gives the "unknown error" exception message.
Juan Blanco
@juanfranblanco
Dec 18 2018 09:07
yes it does
that might be issues with permissions
also I recommend upgrading to v3.0.0 if possible
ameerkahiri
@ameerkahiri
Dec 18 2018 09:33
Thank you Juan
ameerkahiri
@ameerkahiri
Dec 18 2018 09:40
So is there is a way to solve this permission issues?
fruor
@fruor
Dec 18 2018 09:40
Hi @juanfranblanco I saw you pushed Nethereum.Parity 9 days ago. Thanks for that
Am I right that parity calls are not included yet in the nuget version (3.0.0) ?
Or can I setup a custom method call for custom (non-standard web3) methods like parity_nextNonce ?
keepbreath
@keepbreath
Dec 18 2018 10:17
hello @juanfranblanco ,I launch the transaction through the default gas and gasprice, but it will prompt me "intrinsic gas too low".
why?
Roy
@Shammah
Dec 18 2018 10:19
How much gas are you sending with your transaction?
keepbreath
@keepbreath
Dec 18 2018 10:19
21000
web3.TransactionManager.DefaultGas;
web3.TransactionManager.DefaultGasPrice;
Roy
@Shammah
Dec 18 2018 10:23
Hmm that is odd. I assume you're just transferring ether, not calling any smart contract method.
keepbreath
@keepbreath
Dec 18 2018 10:24
emmm... sure
Juan Blanco
@juanfranblanco
Dec 18 2018 10:24
@fruor you can use Nethereum.Parity
Roy
@Shammah
Dec 18 2018 10:24
Essentially it tells you your gas limit is too low, but 21k would be enough for a simple transfer
Roy
@Shammah
Dec 18 2018 10:24
You could try increasing it, see if that resolves the issue. That wouldn't answer the question of why 21k isn't enough though.
Juan Blanco
@juanfranblanco
Dec 18 2018 10:24
although that method might not be inlucded
hi @Shammah apologies I have not had time to see your pull request
Roy
@Shammah
Dec 18 2018 10:26
Hah, it's okay. There's no rush.
keepbreath
@keepbreath
Dec 18 2018 10:28
ok ,thank you,let me try
Kevin Small
@KevinSmall
Dec 18 2018 10:28
@juanfranblanco @ameerkahiri if it helps diagnosis any - I have a demo running on an android 6 device, with nethereum 2.2.1, and it polls for balances fine, no error (app built with unity 2018.1.0f2)
Juan Blanco
@juanfranblanco
Dec 18 2018 10:34
thanks @KevinSmall
Kevin Small
@KevinSmall
Dec 18 2018 10:42
@ameerkahiri the source code is here if that helps: https://www.raywenderlich.com/5509-unity-and-ethereum-why-and-how
ameerkahiri
@ameerkahiri
Dec 18 2018 10:49
Thank you Kevin. Definitely will check it out.
keepbreath
@keepbreath
Dec 18 2018 10:50
In the process of trading, the more information input, the higher the fee?
Roy
@Shammah
Dec 18 2018 11:01
I recall only EVM instructions costing gas, so I'm inclined to say no. It's what you do with the input that increases the fee
I'm wrong, it seems to does increase gas cost
keepbreath
@keepbreath
Dec 18 2018 11:04
yes
I found this problem in the process of small amount
Requires a bit of setup on your end, though
fruor
@fruor
Dec 18 2018 13:05
@juanfranblanco thx for the nethereum.parity nuget package
MANOJKUMARCH
@MANOJKUMARCH
Dec 18 2018 14:27
Hi All, could some one help me on below.
I am trying to write a contract in solidity and read the values from the Nethereum application. In success case I am able to read the values, but in case of revert, I am not getting any value and its a null.
Do we have a mechanism to read the revert error in Nethereum code?
Juan Blanco
@juanfranblanco
Dec 18 2018 15:25
@MANOJKUMARCH no you cannot
the chain does not return the revert string
it most probably will in the future, but nothing has been said yet (that i know of)
Lauri Peltonen
@microbecode
Dec 18 2018 19:23
Hi, I'm new to Nethereum, been using truffle earlier. I'm having problems connecting to my node with Nethereum. I'm running Geth in Ropsten. With Ganache-cli everything connects just fine but for some reason when I try to connect to the node when it's running Ropsten, I get timeout. I start the node with: ""C:\Program Files\Geth\geth.exe" -syncmode light --testnet --rpc --rpcapi eth,net,web3,personal"
any ideas?
I can attach to the node just fine with a geth console
fruor
@fruor
Dec 18 2018 19:24
how does your nethereum web3 constructor look like?
Lauri Peltonen
@microbecode
Dec 18 2018 19:25
new Web3("http://127.0.0.1:8545")
"geth attach http://127.0.0.1:8545" works, so the address should be ok
fruor
@fruor
Dec 18 2018 19:26
can you connect to infura?
Lauri Peltonen
@microbecode
Dec 18 2018 19:27
never used infura.. could try
Roy
@Shammah
Dec 18 2018 19:27
I personally haven't gotten -syncmode light to work yet with geth
do you get any blocks at all?
fruor
@fruor
Dec 18 2018 19:27
right
Roy
@Shammah
Dec 18 2018 19:28
I still think it's experimental as well
Lauri Peltonen
@microbecode
Dec 18 2018 19:28
it's experimental, but I haven't had any problems with it in the past. works just fine with truffle at least
fruor
@fruor
Dec 18 2018 19:28
when you attach to geth with console, what's the output of eth.syncing
Lauri Peltonen
@microbecode
Dec 18 2018 19:29
ah it's actually still syncing..
I'm trying to retrieve a balance - geth shows it just fine even if it's still syncing, maybe Nethereum just wants to be fully synced?
fruor
@fruor
Dec 18 2018 19:31
I'm not sure but I think some windows geth versions startup with the node listening on 192.168.x.x:8545 rather than 127.0.0.1:8545
but still weird. Are you sure the program you're running is not getting blocked by anything?
Lauri Peltonen
@microbecode
Dec 18 2018 19:32
I tried specifying 127.0.0.1 also manually in command-line, didn't make a difference. but anyway, I'll see again when this has fully synced. been a few months since I developed last time so I have just forgotten all the pain :)
well it connects to ganache-cli just fine, so I don't think it's blocked
fruor
@fruor
Dec 18 2018 19:33
I'd just do new Web3("https://ropsten.infura.io");
that way you're sure the program you're writing is not blocked or anything
Lauri Peltonen
@microbecode
Dec 18 2018 19:34
Infura works as well.
Roy
@Shammah
Dec 18 2018 19:35
Polling for filter changes doesn't work here either while synching.
On the other hand I'd expect balance requesting to work though
Lauri Peltonen
@microbecode
Dec 18 2018 19:39
while I'm waiting for syncing (keep getting some lousy peers which get dropped), I have to say I'm impressed with the replies here. I thought this would be a small and quiet community
Roy
@Shammah
Dec 18 2018 19:39
It is :see_no_evil:
fruor
@fruor
Dec 18 2018 19:42
ok so now I have almost the same setup, just my geth is running on linux subsystem and syncmode full
can connect to 127.0.0.1:8545 and get some results, they are just wrong :)
basically they reflect the state of the chain the node knows of so far
Roy
@Shammah
Dec 18 2018 19:43
how about syncmode fast?
fruor
@fruor
Dec 18 2018 19:44
This message was deleted
@microbecode could you copypaste the e.message you get?
Lauri Peltonen
@microbecode
Dec 18 2018 19:49
well this is funny. now it works :) just by waiting longer (or more blocks?)
ah shit had infura still on. hold on
Roy
@Shammah
Dec 18 2018 19:50
haha
Lauri Peltonen
@microbecode
Dec 18 2018 19:51
umh seems I've lost all credible peers :/ geth and nethereum both complain the same. not too many people running light nodes
Roy
@Shammah
Dec 18 2018 19:51
Yeah, that's why I haven't been able to use it myself either
I'm currently synching rinkeby with fast mode
Not getting new blocks either, guess I'll have to wait for a full sync
Lauri Peltonen
@microbecode
Dec 18 2018 19:55
trying fast ropsten currently.
I'd imagine fast should work always? It's just like full node but without the history
Roy
@Shammah
Dec 18 2018 19:56
Yeah, header's only iirc
Lauri Peltonen
@microbecode
Dec 18 2018 19:57
ah, read some incorrect info, yeah it's a bit more dissimilar..
fruor
@fruor
Dec 18 2018 19:57
This message was deleted
Lauri Peltonen
@microbecode
Dec 18 2018 19:58
uh screw this. I'll just use infura.
even my fast syncs want to start from block 0 for some reason.
Yup
latest block is 0 for me, even though I'm synching
fruor
@fruor
Dec 18 2018 20:00
strange, both parity and geth show me the block they are currently synced to (about 1m on ropsten)
but then again i use full archive fat-db and everything
Roy
@Shammah
Dec 18 2018 20:00
I guess fast mode just doesn't support it
fruor
@fruor
Dec 18 2018 20:02
We all should go back to Rinkeby
:)
Lauri Peltonen
@microbecode
Dec 18 2018 20:05
I've never been a Rinkeby fanboy. Ropsten is closer to reality, so why bother with getting something to work in Rinkeby and only later realize it will never work in the mainnet
RJ Catalano
@VoR0220
Dec 18 2018 20:06
Hey guys, really quick, I wanted to ask if ya'll supported Ganache special RPC methods such as evm_snapshot, evm_revert, evm_increaseTime and evm_mine?
Roy
@Shammah
Dec 18 2018 20:06
I'm not sure what the difference is. I just hoped rinkeby would sync faster than ropsten
fruor
@fruor
Dec 18 2018 20:06
because you develop faster and don't have the issues of things being stuck over weeks because parity decides to miscalculate gas costs
that's for rinkeby. but yeah the tests should go to ropsten before release
Lauri Peltonen
@microbecode
Dec 18 2018 20:07
for faster development, use ganache.
fruor
@fruor
Dec 18 2018 20:08
@VoR0220 I don't think so. There are special calls for parity and they are supported just for a couple of weeks using an own package
RJ Catalano
@VoR0220
Dec 18 2018 20:09
Alright, thanks. I'll see what I can make on my own and if I can help contribute in any meaningful way to the RPC layer I'll push it up.
Roy
@Shammah
Dec 18 2018 20:09
I just CTRL+F'd the entire solution for these RPCs and got 0 results
RJ Catalano
@VoR0220
Dec 18 2018 20:10
Just really want to write solid unit tests where I don't need to power down and power up my chain every time I run a test...sounds dumb.
Lauri Peltonen
@microbecode
Dec 18 2018 20:10
anyway, thanks all for the nice support. I'd love to hang around here but I already have enough IM media and don't wanna start using gitter as well
fruor
@fruor
Dec 18 2018 20:10
aren't there nethereum tests that fire up their own chain?
RJ Catalano
@VoR0220
Dec 18 2018 20:11
Not that I'm aware of.
It specifically says yours are not supported ;)
RJ Catalano
@VoR0220
Dec 18 2018 20:16
doesn't say that. Says they aren't supported in the original specification.
Not trying to be argumentative, just saying there's another way to interpret it.
Roy
@Shammah
Dec 18 2018 20:17
...
I need coffee X.X