Working with the Infura Ethereum API

You can build and invoke Ethereum nodes through the Infura load-balanced nodes by calling the Ethereum API. Just write a regular JSON RPC over both HTTPS and WebSockets code; you can use popular Ethereum client libraries and frameworks to access node information.

When an API needs to support the Pub/Sub feature, a WebSockets endpoint is the better choice; it also provides JSON-RPC filter support, for example, eth_newFilter, which creates a filter in the node to notify us when a new block arrives, and more.

Let's create a simple Infura DApp to get account and node information from the Görli testnet; we will use web3.js for this. In our Infura DApp, we will use the newer Görli test network. Ropsten is not ...

Get Learn Ethereum now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.