Web3.js is a popular JavaScript library to interact with the Ethereum network. It allows developers to retrieve on-chain data, submit calls to the Ethereum network, and support user interaction through providers such as MetaMask.
Web3.js and Infura
Eager to get started developing with JavaScript and Infura? We've set up various tutorials to help you get started with web3.js, using Infura as the web3 provider.
Getting Started
See the Infura Docs for an introduction to making requests on the Ethereum network using web3.js.
Tutorials
- Web3.js: How to send batch requests with Infura - Infura Community
- Web3.js: How to Send ERC-20 Tokens - Infura Community
- Web3.js: How to Retrieve the Balance of an ERC-20 Token - Infura Community
- Web3.js: How to Retrieve and Display an NFT (ERC-721/ERC-1155) - Infura Community
- Web3.js: How to Track ERC-20 Token Transfers (+ Specific Address/Token) - Infura Community
- Web3.js: How to Track NFT (ERC-721/1155) Transfers and Mints (+ Specific Address/NFT) - Infura Community
- Web3.js How to keep WebSocket subscriptions alive and reconnect on failures - Infura Community
- Ethereum JavaScript Libraries: Web3.js vs Ethers.js: An Update - Infura Blog
Are you new to development for Web3? Take a look at our Developer's Guide to the Web3 Stack, providing a full A-Z on everything you need to know to get started.