/evm-dashboard

Script for collecting Ethereum and EVM-based block data and adding it to a Google script

Primary LanguagePython

Labs

Chainstack is the leading suite of services connecting developers with Web3 infrastructure

         

Supported protocolsChainstack blogChainstack docsBlockchain API referenceStart for free

EVM Dashboard using Python

Script for collecting Ethereum Block data to build an excellent Web3-based dashboard on your own using a bit of Python and a Google spreadsheet.

Read the full tutorial on the Chainstack blog:

Project details

This repository holds the code used in the How to buidl your web3 dashboard tutorial. Unlike in the blog, the code in the repository is modularized into different files named according to its functionality. The code does the following:

  • Connect to Chainstack node via WSS endpoint
  • Fetch the latest blocks
  • Retrieves information from the block
  • Adds the retrieved information to the specified google sheets

Quick start

Before running the code, it is highly recommended that you go through the blog as it describes the whole logic of the code.

Clone this repository.

Install the Python dependencies:

pip install -r requirements.txt

Run the get_transaction.py file:

python get_transaction.py

Prerequisites

  • Python ^3.6
  • A node RPC endpoint.

Deploy a node with Chainstack:

  1. Sign up with Chainstack.
  2. Deploy a node.
  3. View node access and credentials.

Dependencies

  • gspread ^5.4.0
  • web3.py ^5.29.2
  • websockets ^9.1

Install

Install Python on your system:

Clone this repository.

Install the Python dependencies:

pip install -r requirements.txt