{"id":18794513,"url":"https://github.com/chainstacklabs/query-evm-nodes-python","last_synced_at":"2026-04-13T17:03:04.673Z","repository":{"id":145844226,"uuid":"607069833","full_name":"chainstacklabs/query-evm-nodes-python","owner":"chainstacklabs","description":"Query historical data on full and archive nodes to understand the difference","archived":false,"fork":false,"pushed_at":"2023-04-05T05:43:32.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T16:33:11.274Z","etag":null,"topics":["blockchain","ethereum","python"],"latest_commit_sha":null,"homepage":"https://chainstack.com/querying-full-and-archive-evm-nodes-with-python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainstacklabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-27T08:47:51.000Z","updated_at":"2023-04-11T00:44:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"35c0d41d-7906-4bfa-857c-cfcc975e9291","html_url":"https://github.com/chainstacklabs/query-evm-nodes-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fquery-evm-nodes-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fquery-evm-nodes-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fquery-evm-nodes-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fquery-evm-nodes-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainstacklabs","download_url":"https://codeload.github.com/chainstacklabs/query-evm-nodes-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718545,"owners_count":19685763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","ethereum","python"],"created_at":"2024-11-07T21:29:38.938Z","updated_at":"2025-12-29T18:30:11.777Z","avatar_url":"https://github.com/chainstacklabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"1200\" alt=\"Labs\" src=\"https://user-images.githubusercontent.com/99700157/213291931-5a822628-5b8a-4768-980d-65f324985d32.png\"\u003e\n\n\u003cp\u003e\n \u003ch3 align=\"center\"\u003eChainstack is the leading suite of services connecting developers with Web3 infrastructure\u003c/h3\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-ethereum/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Ethereum.svg\" /\u003e\u003c/a\u003e\u0026nbsp;  \n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-bnb-smart-chain/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/BNB.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-polygon/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Polygon.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-avalanche/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Avalanche.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-solana/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Solana.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/protocols/\"\u003eSupported protocols\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/blog/\"\u003eChainstack blog\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://docs.chainstack.com/\"\u003eChainstack docs\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://docs.chainstack.com/api/\"\u003eBlockchain API reference\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://console.chainstack.com/user/account/create\"\u003eStart for free\u003c/a\u003e\n\u003c/p\u003e\n\n# Querying full and archive EVM nodes with Python\n\nThis project allows the retrieval of historical data from the blockchain programmatically, switching between a full and archive node provider when necessary.\n\nSee the full tutorial on the Chainstack blog:\n* [Querying full and archive Ethereum nodes with Python](https://chainstack.com/querying-full-and-archive-evm-nodes-with-python/)\n\n## Project details\n\nThis 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.\n\nThis tool queries the blockchain using the web3 and inquirer libraries for Python. \n\n## Quick start\n\n### Clone this repository\n\n\n```sh\ngit clone https://github.com/chainstacklabs/chainstack-full-vs-archive-query-py.git\n```\n\n### Install dependencies\n\n```sh\npip install -r requirements.txt \n```\n\n### Edit the env.sample file\n\nAdd your RPC node URLs and rename the file to `.env`.\n\n```env\nCHAINSTACK_FULL_NODE=\"CHAINSTACK_FULL_NODE_URL\"\nCHAINSTACK_ARCHIVE_NODE=\"CHAINSTACK_ARCHIVE_NODE_URL\"\n```\n\n### Run the program\n\n```sh\npython main.py\n```\n\n## Prerequisites\n\n* Python: ^3.7— [install Node](https://www.python.org/downloads/)\n* A full and archive node RPC endpoints.\n\nDeploy a full and archive node with Chainstack:\n\n1. [Sign up with Chainstack](https://console.chainstack.com/user/account/create).  \n1. [Deploy a node](https://docs.chainstack.com/platform/join-a-public-network).  \n1. [View node access and credentials](https://docs.chainstack.com/platform/view-node-access-and-credentials). \n\n\n## Install\n\nClone this repository:\n\n```sh\ngit clone https://github.com/chainstacklabs/chainstack-full-vs-archive-query-py.git\n```\n\nInstall the dependencies in the project's directory:\n\n```sh\ncd query-full-and-archive-nodes-python\n```\n\n```sh\npip install -r requirements.txt \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fquery-evm-nodes-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainstacklabs%2Fquery-evm-nodes-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fquery-evm-nodes-python/lists"}