I am building a web app that would track events/transactions made by contracts on the chain. At this point I am considering hosting a geth node on AWS EC2 in order to use in my web3.js initialization object. Would it be possible to use the MetaMask service instead of hosting my own node, just to probe the chain, without requiring my client side users to download the metamask plug in in order to use it?


MetaMask doesn't actually host any nodes! So if you want to write applications without the overhead of hosting your own node in the cloud, you can point your app to Infura. Checkout the site here: https://infura.io/.

You just need to make an account, then point your app to our endpoints. Basically all you need to do is replace http://localhost:8545 with https://"NETWORK".infura.io/"APIKEY", where "NETWORK" is either one mainnet, ropsten, rinkeby, kovan, and where "APIKEY" is the key you will get when you sign up!

You will then be hitting the same endpoints as MetaMask, since they send your transactions to Infura by default.

  • WOW thats pretty much exactly what i was looking for, I dont know why it was so difficult to stumble across. Doesn't hurt that its free either! I am going to experiment with my EC2 server and this and use whatever is less hassle. Thanks.
    – mholberger
    Jun 27 '17 at 3:16
  • I'm glad it all worked out for you! :)
    – erkt
    Jun 28 '17 at 3:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.