How to Use Remix with Infura for Ethereum Development

Note

For a comprehensive coverage of blockchain development in Ethereum or mastering Solidity programming, taking our below self paced courses is highly recommended:

 

Recap

In our previous article (Review of Infura Ethereum API), we discussed how Infura Ethereum API works.

In this article, we learn how to use Infura with Remix for building Ethereum blockchain applications.

 

Using Remix with Infura

We can deploy the ERC20 token smart contract from Remix to the Infura Ropsten testnet easily. Just use an injected Web3 instance by using MetaMask, which is already connected to Ropsten testnet through Infura. If you need ethers for test, you can get them from https://faucet.metamask.io:

 Ethereum blockchain development in Infura

Follow the regular deployment process; the smart contract will be deployed to the Ropsten testnet in a few clicks, as shown here:

 Ethereum blockchain development in Infura

 

One-to-One Live Blockchain Classes

Coding Bootcamps school offers One-to-One Live Blockchain Classes for Beginners.

 

After connecting to the Infura blockchain network, you can call the smart contract function; as usual, MetaMask will connect to the testnet and execute transactions. You don’t even need to install a local blockchain instance. Due to this, smart contract development becomes very easy and convenient. You just need to connect to the network provided by Infura.

You can also easily transfer amounts from one account to another by using the send ETH method from the MetaMask wallet. The following example shows that we sent 2 ethers from one account to another:

 Ethereum blockchain development in Infura

Click Next and confirm the transaction. Once the transfer has completed, we can verify that the ether was sent in Etherscan. Etherscan is the block explorer and analytics platform for the Ethereum blockchain. You can easily search, confirm, and validate smart contract transactions that have been deployed on the Ethereum blockchain using this platform.

 

The following screenshot shows our transactions in Etherscan:

 Ethereum blockchain development in Infura

 

As we can see, Infura has undoubtedly provided an easy solution to help developers build DApps on the Ethereum network. A developer can focus on their application development and utilize infrastructure supported by Infura.

 

Next Article
In our next article (How Ethereum Client API Works), we discuss Ethereum client API.

This article is written in collaboration with Brian Wu who is a leading author of “Learn Ethereum: Build your own decentralized applications with Ethereum and smart contracts” book. He has written 7 books on blockchain development.

 

Resources

coming soon