{"id":18794438,"url":"https://github.com/chainstacklabs/evm-smart-contract-watcher-ethers","last_synced_at":"2025-07-07T05:33:54.907Z","repository":{"id":145838539,"uuid":"585698093","full_name":"chainstacklabs/evm-smart-contract-watcher-ethers","owner":"chainstacklabs","description":"This simple project uses the ethers.js library to examine blocks using the eth_getBlockReceipts method and extract data about newly deployed smart contracts","archived":false,"fork":false,"pushed_at":"2024-10-12T15:30:35.000Z","size":47,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T06:12:08.141Z","etag":null,"topics":["chainstack","ethers","smart-contracts","web3"],"latest_commit_sha":null,"homepage":"https://docs.chainstack.com/docs/uncovering-the-power-of-ethgetblockreceipts","language":"JavaScript","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}},"created_at":"2023-01-05T20:54:27.000Z","updated_at":"2025-02-03T04:01:52.000Z","dependencies_parsed_at":"2023-05-05T19:33:24.518Z","dependency_job_id":null,"html_url":"https://github.com/chainstacklabs/evm-smart-contract-watcher-ethers","commit_stats":null,"previous_names":["chainstacklabs/evm-smart-contract-watcher-ethers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fevm-smart-contract-watcher-ethers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fevm-smart-contract-watcher-ethers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fevm-smart-contract-watcher-ethers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fevm-smart-contract-watcher-ethers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainstacklabs","download_url":"https://codeload.github.com/chainstacklabs/evm-smart-contract-watcher-ethers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248728223,"owners_count":21152180,"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":["chainstack","ethers","smart-contracts","web3"],"created_at":"2024-11-07T21:29:26.736Z","updated_at":"2025-04-13T14:32:42.277Z","avatar_url":"https://github.com/chainstacklabs.png","language":"JavaScript","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-fantom/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Fantom.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  • \u003ca target=\"_blank\" href=\"https://chainstack.com/\"\u003eHomepage\u003c/a\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/quickstart/\"\u003eChainstack docs\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://docs.chainstack.com/quickstart/\"\u003eBlockchain API reference\u003c/a\u003e • \u003cbr\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# Smart contract watcher Chainstack\n\n This simple project uses the Ethers.js library to examine blocks using the `eth_getBlockReceipts` method and extract data about newly deployed smart contracts.\n\nRead the full article on the Chainstack Developer Portal:\n * [Uncovering the Power of eth_getBlockReceipts](https://docs.chainstack.com/docs/uncovering-the-power-of-ethgetblockreceipts)\n\n ## Project details\n\nThis program uses the `ethers.js` library to retrieve all of the transaction receipts in a block at once using the `eth_getBlockReceipts` method; it then looks for transactions that deployed a new smart contract by inspecting the `contractAddress` field of each transaction receipt.\n\n\u003e This project is compatible with EVM-based chains.\n\n## Quickstart\n\n### Clone this project\n\n```sh\ngit clone https://github.com/soos3d/smart-contract-watcher-chainstack.git\n```\n\n### Install Dependencies\n\nFrom the root directory of the project run:\n\n```sh\nnpm ci\n```\n\n\u003e Use `npm ci` to launch a `clean install` of the dependencies. This will install the same version as in the `package.json` file.\n\n### Edit .env.sample\n\nEdit the `.env.sample` file, paste the node endpoint you wish to test, and rename it to `.env`.\n\n\u003e Starting August 2023, Geth also support `eth_getBlockReceipts`.\n\n```sh\nERIGON_RPC=\"YOUR_ERIGON_NODE_URL\"\n```\n\n### Start\n\nTo start the program, run the following:\n\n```sh\nnpm run start\n```\n\nThis will run the app, giving you the following results in the console if new smart contracts are detected.\n\n```sh\n\u003e smart-contract-watcher-chainstack@1.0.0 start\n\u003e node index.js\n\nNew smart contract detected! \nNew smart contract address: 0x00e9a503b88732ee3e28a0fec3343c405f5e963d\nDeployed by address: 0x984380fc12cc3bdb894e1f35111dd992fb52a231\nDeployed by transaction: 0xad8d3a6647a4ad7e2f8eedef258b4c3233d54e5999a855ca59500f5df70d35de\n```\n\n## Prerequisites\n\nThe system requires at least:\n\n* Node.js v16.17.0— [install Node](https://nodejs.org/en/download/)\n* A Chainstack RPC endpoint.\n\n## Install\n\nTo install this project:\n\nClone this repository:\n\n```sh\ngit clone https://github.com/soos3d/smart-contract-watcher-chainstack.git\n```\n\nInstall dependencies:\n\nFrom the root directory of the project run:\n\n```sh\nnpm ci\n```\n\n\u003e Use `npm ci` to launch a `clean install` of the dependencies. This will install the same version as in the `package.json` file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fevm-smart-contract-watcher-ethers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainstacklabs%2Fevm-smart-contract-watcher-ethers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fevm-smart-contract-watcher-ethers/lists"}