How to Connect to the Ethereum Blockchain in Code

  1. NPM and Node.js (install via instructions at the link)
  2. Web3.js (install from a command line: npm install web3)
  3. Infura Endpoint — create a free account, go to dashboard, by ENDPOINT select MAINNET, copy the end point URL, put it in the code below

If this was helpful, give me some claps and share! And reach out js (at) stauffer.co or @jaredstauffer on Twitter.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jared Stauffer

Jared Stauffer

CTO, Technology Leader, Innovator 🚀