INFURA / infura

Official Public Repository for INFURA
https://infura.io
380 stars 62 forks source link

Does Infura support the Web3.js 1.0 API? #29

Closed lukehedger closed 6 years ago

lukehedger commented 7 years ago

Using web3@1.0.0-beta.18 I have attempted to deploy a contract to Rinkeby with a single argument:

myContract.deploy({ arguments: [ 123 ] })

The contract deploys OK but when calling a method to return the constructor argument, 0 is returned, which suggests the argument was not processed.

myContract.methods.echo().call({ from: fromAccount })
  .then( res => console.log(res) ) //=> 0

The contract is here for ref:

pragma solidity ^0.4.0;

contract Echo {
  uint value;

  function Echo(uint _value) {
    value = _value;
  }

  function echo() constant returns (uint) {
    return value;
  }
}
egalano commented 7 years ago

Hi @lukehedger we're working on web3.js 1.0 support i.e. scalable websocket support now. It's in early alpha support stage on our side. If you're interested in helping us test it out shoot me your contact info and I'll get you access.

lukehedger commented 7 years ago

Hey @egalano - sounds cool! Would definitely like to help test. Email is: luke@jaak.io.

rhlsthrm commented 7 years ago

Hi @egalano, I'd also like to test out the new version. Email is rahul@connextapi.com.

tensor5 commented 7 years ago

Hi @egalano, I'd like to try the Web3.js 1.0 support. tensor5@gmail.com. Thanks

strelok1 commented 7 years ago

Would love to get beta access to web3js 1.0 support with web sockets. roman.rodov+github@gmail.com

rhlsthrm commented 7 years ago

Has anyone gotten an email from them regarding this issue? I have not received anything.

egalano commented 7 years ago

Sorry for the delay, I just sent the email with the connection details. Please give it a try and let us know if you encounter any issues.

strelok1 commented 7 years ago

Thanks. Got the email. Will report back with any probs. Cheers

tensor5 commented 7 years ago

@egalano Thanks!

DalderupMaurice commented 7 years ago

Any estimation when this functionality will be available? Currently, I have no clue how to watch events whatsoever - while using infura. @egalano I am also willing to test it :) (Email can be found on my profile)

miguelmota commented 7 years ago

@egalano i'm interested in trying out and testing infura websocket support miguel@mota.email

ravshanof commented 7 years ago

Hi @egalano, happy to test out the alpha version. Email: ravshanoff at protonmail

christian-valadez commented 7 years ago

Hi @egalano , I'd also love to test out the alpha version. Email: cvaladez@stanford.edu

jdkanani commented 7 years ago

@egalano Hey I have built infra to listen live events from Ethereum: https://matic.network/dagger Thought you would find this interesting.

miguelmota commented 7 years ago

Really cool library @jdkanani

egalano commented 7 years ago

Nice @jdkanani . Is that library compatible with any Ethereum node or specifically Geth's pub-sub API.

jdkanani commented 7 years ago

@egalano Unfortunately no.

Problem was that - if you have multiple Geth nodes - you have to deploy filters on every node. Plus, separating filters from Geth will give you more control over filter types. There are some cons too. But overall this will make development very easy for DApps.

icaroharry commented 7 years ago

hey @egalano. I'm trying to listen to an event (with Web3.js) from a contract deployed in Ropsten but I'm getting The current provider doesn't support subscriptions. Is it related to this issue? If so, I'm interested in testing the websocket support. Email: me@icaro.io

Thanks in advance!

egalano commented 7 years ago

Hi @icaroharry yes our API does not allow stateful requests at the moment. Our JSONRPC API endpoint currently load balances requests between many backend Ethereum nodes to be able to handle our large request volume. This is why we don't allow event subscriptions which use eth_newFilter and eth_getFilterLogs. Typically people are using eth_getLogs method and polling to be able to simulate the behavior of an event subscription. Or you can try out our websocket endpoint which we have been working on which should finally deliver this desired feature to users.

jdkanani commented 7 years ago

@icaroharry How did you solve this problem then? Just curious.

carlolm commented 7 years ago

@egalano hi can I try out websocket beta also? I am working on a DApp requiring real time event updates. Thanks! carlol@gmail.com

icaroharry commented 7 years ago

@jdkanani I'm working on an alpha version of a DApp, so temporarily I implemented a good old "refresh button" that calls web3.contract.getPastEvents :smile:

Now I'm going to test the websocket. Kudos to @egalano

jdkanani commented 7 years ago

@icaroharry Great. And, @egalano what did you change at Infura to solve problem of "installing same filters on all nodes"?

MisterDr commented 7 years ago

Hi @egalano, could you please add me to WS beta at: djenadrazic@gmail.com. Thank you :)

LefterisJP commented 7 years ago

Hey @egalano could I get beta acces to websocket support? lefteris@refu.co

afiorenza commented 7 years ago

Hi @egalano do you have an ETA for this? Thank you.

ghost commented 7 years ago

Hey @egalano .. Please send me details also i would love to be alpha tester for this. Thanks. anilbaweja.bx@gmail.com

maxsupera commented 7 years ago

i would also love to get some of that sweet websocket access. please add meeee!!!! :D max@daashaus.com

Thanks!

alexey-ernest commented 7 years ago

Hi @egalano I wonna try websocket also. Thanks. alexey.ernest@gmail.com

meetbinoy commented 7 years ago

Hi @egalano Can you please add me in beta testing of WS? binoy@plachira.com Thanks.

eugeneotto commented 7 years ago

Hi @egalano, I'd love to try Infura's websocket transport, as well. Thank you!

Email: eugene.otto@gmail.com

nosuchip commented 7 years ago

Hi @egalano, could you please add me to tester pool? nosuchip@gmail.com. Thanks.

netpi commented 7 years ago

Hi @egalano Can you please add me in beta testing of WS? Thank you very much !
email : moon@netpi.me

okwme commented 7 years ago

Hi @egalano we spoke at EtherealSF about websocket support, is it possible to have access? hello@okw.me

dancre commented 7 years ago

Hi @egalano could you please add me to websocket beta testing also? dane.creighton@gmail.com. Thank you very much!

andrewsource147 commented 7 years ago

Hi @egalano Could you please add me in WS? Thank you very much! My email: andrew@kyber.network

dl3br commented 7 years ago

@egalano can i have access to ws?

fritz_da_silva at homail dot com

thanks

egalano commented 7 years ago

Thanks for your patience everyone. We just sent out out another batch of invites to try this out. If you are already using our wss endpoints please send us feedback on how your experience is going. Thanks!

C0deMunk33 commented 7 years ago

I would also like access please. hollandcodeandgraphics at gmail

Thank you!

amitranjan14 commented 7 years ago

@egalano interested in checking out the new api's. would be thankful if you can provide the connection details on the mail id: ameetranjan at gmail dot com

andrewsource147 commented 7 years ago

@egalano Does INFURA supports websocket for KOVAN testnet?

Thanks you

dschoeni commented 7 years ago

@egalano: could you send us an invite as well? d.schoeni[ät]papers.ch - very interested in this!

AntonioJuliano commented 6 years ago

@egalano would love an invite to antonio@dydx.exchange

jahneeM3 commented 6 years ago

@egalano would really love to test with this tom@blocktech.com. could you send an invite?

enriquefynn commented 6 years ago

Hi @egalano, can I get an invite? fynn@montelabs.com. Thanks

amitranjan14 commented 6 years ago

@egalano please do share the invites.

ealmansi commented 6 years ago

Hi @egalano, I'd like to try out websocket support too if possible. My email is: ealmansi@gmail.com Thanks!

Matko95 commented 6 years ago

Hello guys, I'd like to test out the new clients with our DApp, could I get an invite? mtrifunovski at gmail dot com

tetsuo commented 6 years ago

@egalano Hey! can I get an invite? ogunduz@gmail.com Thanks!

Hu4F00d commented 6 years ago

HI @egalano I'm doing an app that requires live updates, can I get an invite? mauro@osn.global thanks a lot!