0

I've read mixed things. In the docs for Truffle Framework there are instructions for deploying contracts via Infura's APIs.

But, elsewhere, I've read that Infura doesn't allow one to send transactions and hence deploying via Infura is not possible.

Which is it?

Has anyone managed to deploy via Infura?

sofend
  • 241
  • 1
  • 6
  • Yes, it is possible, this answer provide a nice step by step guide how to use infura from truffle https://ethereum.stackexchange.com/a/23320. – Ismael Nov 25 '17 at 00:07
  • Have you personally done this and gotten it to work?

    I'm aware of that writeup and tried it. It did not work. My question here is for someone that's actually gotten the theoretical steps to actually work. Infura does not support most RFC commands and as of a few months ago did not support this.

    – sofend Nov 26 '17 at 01:04
  • Yes, I've deployed successfully several contracts. If you have a particular problem ask a new question with your particular details so we can help you. – Ismael Nov 26 '17 at 04:27
  • Just to confirm, you deployed via Infura? – sofend Nov 26 '17 at 16:34
  • Yes, make sure to set a correct gas price so it will be deployed quickly. If it is too low you transaction will be delayed and migrate will timeout. See here https://ethgasstation.info/ for the average pirice/wait. – Ismael Nov 26 '17 at 18:51
  • @Ismael https://ethereum.stackexchange.com/questions/32770/error-linking-library-when-deploying-with-via-infura-ropsten Here's the more specific question – sofend Dec 07 '17 at 20:21

1 Answers1

2

Yes you can. From web3 docs:

In order to transact with Infura nodes, you will need to create and sign transactions offline before sending them, as Infura nodes have no visibility of your encrypted Ethereum key files, which are required to unlock accounts via the Personal Geth/Parity admin commands.

You will need to send sign transactions. Here is the relevant doc of web3:

https://web3js.readthedocs.io/en/1.0/web3-eth.html#sendsignedtransaction

Julien Klepatch
  • 574
  • 2
  • 5