Supported protocols • Chainstack blog • Chainstack docs • Blockchain API reference • Start for free
This project allows the retrieval of historical data from the blockchain programmatically, switching between a full and archive node provider when necessary.
See the full tutorial on the Chainstack blog:
This repository holds the Python version of a tool to query common state functions. Some essential functions include getting an address balance and storage at a given position, a contract bytecode, or even the whole transactions included on a given block.
This tool queries the blockchain using the web3 and inquirer libraries for Python.
git clone https://github.com/chainstacklabs/chainstack-full-vs-archive-query-py.gitpip install -r requirements.txt Add your RPC node URLs and rename the file to .env.
CHAINSTACK_FULL_NODE="CHAINSTACK_FULL_NODE_URL"
CHAINSTACK_ARCHIVE_NODE="CHAINSTACK_ARCHIVE_NODE_URL"python main.py- Python: ^3.7— install Node
- A full and archive node RPC endpoints.
Deploy a full and archive node with Chainstack:
Clone this repository:
git clone https://github.com/chainstacklabs/chainstack-full-vs-archive-query-py.gitInstall the dependencies in the project's directory:
cd query-full-and-archive-nodes-pythonpip install -r requirements.txt 