Supported protocols • Chainstack blog • Chainstack docs • Blockchain API reference • Start for free
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:
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
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
- Python ^3.6
- A node RPC endpoint.
Deploy a node with Chainstack:
- gspread ^5.4.0
- web3.py ^5.29.2
- websockets ^9.1
Install Python on your system:
Clone this repository.
Install the Python dependencies:
pip install -r requirements.txt