These are chat archives for Nethereum/Nethereum

21st
Dec 2018
Juan Blanco
@juanfranblanco
Dec 21 2018 06:20
correct not batching capability @Shammah
@d-moos get the latest from myget
CI that includes 12+
MANOJKUMARCH
@MANOJKUMARCH
Dec 21 2018 07:35
Hi, @juanfranblanco , I am creating the account using a privatekey.
var acct = new Account(privateKey);
ameerkahiri
@ameerkahiri
Dec 21 2018 07:57
I think if you already have an existing private key, you are not actually create a new account. If you want to create a new account, you can use Nethereum.Signer.EthECKey.GenerateKey(). and create a keypair of public and private key of the new account.
Thats how I'm doing it. I dont know if there is other way.
Juan Blanco
@juanfranblanco
Dec 21 2018 08:04
yes we are talking about objects
ameerkahiri
@ameerkahiri
Dec 21 2018 08:20
Owh I see. My bad. :)
Juan Blanco
@juanfranblanco
Dec 21 2018 08:29
:)
Online Certification Token
@provetoken
Dec 21 2018 09:07
@juanfranblanco have you implemented the functionality for transferring ERC20 tokens by spending gas from another address?
Juan Blanco
@juanfranblanco
Dec 21 2018 09:29
that will be a proxy contract
Online Certification Token
@provetoken
Dec 21 2018 10:15
many thanks
Matthew Morrison
@matthewsmorrison
Dec 21 2018 10:27
Hi @juanfranblanco - just wondering whether you heard back from Kaleido on the problems that we spoke about a couple of weeks back?

Also another question for the community - I am trying to send a fairly long string to my smart contract (~0.3648MB) and I am getting the following error from Nethereum: HttpRequestException: Response status code does not indicate success: 413 (Request Entity Too Large

Does anyone know how to get round this / a fix?

Juan Blanco
@juanfranblanco
Dec 21 2018 10:53
no response
yet
i am chasing it
Matthew Morrison
@matthewsmorrison
Dec 21 2018 10:54
Thanks very much! Have you come across the other question above regarding the 413 error?
Juan Blanco
@juanfranblanco
Dec 21 2018 10:54
well yes but in another world, using webservices
so mainly that is a limitation on the server side
Ganesh Prasad Kumble
@0zAND1z
Dec 21 2018 10:55
@juanfranblanco is there a metamask like interface for mobile apps?
Juan Blanco
@juanfranblanco
Dec 21 2018 10:55
(or ethereum client)
Ganesh Prasad Kumble
@0zAND1z
Dec 21 2018 10:55
Specially for Xamarin mobile environments..
Would be excited to learn more on that & contribute if possible!
Juan Blanco
@juanfranblanco
Dec 21 2018 10:56
check the xamarin wallet sample
in github
but at the moment is something you need to build yourself
not an out of the box solution
Ganesh Prasad Kumble
@0zAND1z
Dec 21 2018 10:57
Something not like a silo app
Matthew Morrison
@matthewsmorrison
Dec 21 2018 10:57
@juanfranblanco Ok so this is a size limitation with the Nethereum RPC client?
Ganesh Prasad Kumble
@0zAND1z
Dec 21 2018 10:57
Something people can use to switch accounts & dynamically sign Txns
Juan Blanco
@juanfranblanco
Dec 21 2018 10:58
no it is with the rpc server
@matthewsmorrison
Matthew Morrison
@matthewsmorrison
Dec 21 2018 10:58
Juan Blanco
@juanfranblanco
Dec 21 2018 10:58
check this
Ganesh Prasad Kumble
@0zAND1z
Dec 21 2018 10:59
@kumavis can share more progress on that
If someone here can ping him & invite for some inputs / status
Juan Blanco
@juanfranblanco
Dec 21 2018 11:00
ill doubt you will get @kumavis here
check in the metamask slack :)
but yes there is a mobile work on the way
but that is completely different from Nethereum
Xamarin etc
so if you want to build your Mobile app then Nethereum
if you want metamask then metamask :)
Ganesh Prasad Kumble
@0zAND1z
Dec 21 2018 11:01
Aah that analogy helps
Thanks
Juan Blanco
@juanfranblanco
Dec 21 2018 11:02
although if you want to do hybrid stuff
Nethereum has hybrid dapps too
Matthew Morrison
@matthewsmorrison
Dec 21 2018 11:02
@juanfranblanco Ah ok - so this is actually a problem with my Kaleido / AWS server not processing the request?
Juan Blanco
@juanfranblanco
Dec 21 2018 11:03
yeah
Matthew Morrison
@matthewsmorrison
Dec 21 2018 11:05
@juanfranblanco hmmm ok, thanks for your help!
Juan Blanco
@juanfranblanco
Dec 21 2018 11:06
ill ask that too :)
Matthew Morrison
@matthewsmorrison
Dec 21 2018 11:07
:)
You don't know what the typical size limit would be for a request like that would be? I am thinking of just temporarily breaking it down into chunks.
Juan Blanco
@juanfranblanco
Dec 21 2018 11:17
it all depends on configuration
although thinking about it (ie moving away from the error)
you are going to have problems anyway as the smart contract is going to have its limitations too
I do recommend you to use one of the testchains
to play around with the limitations https://github.com/Nethereum/TestChains before moving on to the http
@matthewsmorrison ^^
Juan Blanco
@juanfranblanco
Dec 21 2018 11:23
so you are going to need to increase the blocksize limit dramatically to get more than 98k and move on to the http size
i guess you could try to do it in 4 requests
Matthew Morrison
@matthewsmorrison
Dec 21 2018 11:39

@juanfranblanco My Quorum chain running on Kaleido is essentially a testchain :)

I am actually not sure of the block size within Quorum with RAFT consensus. This is less of an issue within a private network from my point of view.

Juan Blanco
@juanfranblanco
Dec 21 2018 12:00
You still have block sizes
Quorum is Geth so you will encounter similar issues
Matthew Morrison
@matthewsmorrison
Dec 21 2018 12:01
Yes I will have to do some sort of chunk-based transactions to my smart contract regardless
Juan Blanco
@juanfranblanco
Dec 21 2018 12:02
Kaleido will configure the block size in your genesis
Juan Blanco
@juanfranblanco
Dec 21 2018 13:03
@kggp1995 the metamask slack is here https://metamask.slack.com/ if you want it
Psilon
@Pzixel
Dec 21 2018 13:16
hey @juanfranblanco
sometimes I get timeout error. I'd like to know if it's client side timeout or server side.
Do you configure any timeout in your client?
Or is it even configurable at all?
Daniel Moos
@d-moos
Dec 21 2018 13:54
@d-moos get the latest from myget
Hey @juanfranblanco . Do you have a specific Tag / Version? The latest (https://www.myget.org/feed/nethereum/package/nuget/Nethereum.Util/3.0.0-CI-20181217-104053) seems also be limited to Newtonsoft.Json (>= 10.0.3 && <= 12.0.0).
Juan Blanco
@juanfranblanco
Dec 21 2018 14:59
yeah there is a timeout but is rather large
@d-moos my bad
let me check as I did set it to be larger than that
Psilon
@Pzixel
Dec 21 2018 15:02
public static global settings... Looks hacky :(
thanks anyway
Juan Blanco
@juanfranblanco
Dec 21 2018 15:02
well this is a general setting
that was the idea
but good feedback :)
why a generic setting, to avoid the rpc client to hang due to parity not responding with an error
so in general you should never have a timeout issue or hanging
oh yes other issue is that users have the wrong url, or firewall issues and don't have a response for a long time
Psilon
@Pzixel
Dec 21 2018 15:11
It's more about it's impossible to design two clients with different timeouts
Juan Blanco
@juanfranblanco
Dec 21 2018 15:12
yep
correct
the static timeout should be the Default timeout
overriden with a parameter
Psilon
@Pzixel
Dec 21 2018 15:13
I just don't like any static variables
except for maybe readonly
no DI, no extensibility, poor multithreading and so on
Juan Blanco
@juanfranblanco
Dec 21 2018 15:15
yes no DI has always been a rule for Nethereum as it has been driven by simplicity of getting started
if you want to intercept requests, you can do that
that is how I can implement Quorum :)
Juan Blanco
@juanfranblanco
Dec 21 2018 15:24
to work at interface level that is why we have the TransactionHandlers
and QueryHandlers
that way you could create interceptors
decorators
for logging, validation, etc, etc
@Pzixel
Daniel Moos
@d-moos
Dec 21 2018 15:35
@juanfranblanco Alright no worries!
Juan Blanco
@juanfranblanco
Dec 21 2018 15:41
what has happened is that having a 12] has not done a catch all versions 12.x.x as per the nuget definition. I will just set it to 13)
Psilon
@Pzixel
Dec 21 2018 15:44
I'm completely fine, don't worry)
Juan Blanco
@juanfranblanco
Dec 21 2018 16:05
:)
Daniel Moos
@d-moos
Dec 21 2018 16:10
That's perfectly fine for me.
Many thanks! Really appreciate the project :)