{"id":21247156,"url":"https://github.com/alchemyplatform/hardhat-ethers-react-ts-starter","last_synced_at":"2025-07-10T22:32:10.373Z","repository":{"id":37047065,"uuid":"440679086","full_name":"alchemyplatform/hardhat-ethers-react-ts-starter","owner":"alchemyplatform","description":"A web3 starter project using Typescript, Hardhat, ethers.js and @web3-react","archived":false,"fork":false,"pushed_at":"2022-06-18T04:20:58.000Z","size":389,"stargazers_count":45,"open_issues_count":0,"forks_count":23,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-05-21T04:11:07.709Z","etag":null,"topics":["blockchain","ethersjs","hardhat","react","typescript"],"latest_commit_sha":null,"homepage":"https://www.chainshot.com","language":"TypeScript","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/alchemyplatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-21T23:40:37.000Z","updated_at":"2024-05-16T10:16:38.000Z","dependencies_parsed_at":"2022-06-25T05:01:42.494Z","dependency_job_id":null,"html_url":"https://github.com/alchemyplatform/hardhat-ethers-react-ts-starter","commit_stats":null,"previous_names":["alchemyplatform/hardhat-ethers-react-ts-starter"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fhardhat-ethers-react-ts-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fhardhat-ethers-react-ts-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fhardhat-ethers-react-ts-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fhardhat-ethers-react-ts-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alchemyplatform","download_url":"https://codeload.github.com/alchemyplatform/hardhat-ethers-react-ts-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225658502,"owners_count":17503667,"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","ethersjs","hardhat","react","typescript"],"created_at":"2024-11-21T02:16:45.397Z","updated_at":"2024-11-21T02:16:45.953Z","avatar_url":"https://github.com/alchemyplatform.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Starter React Typescript Ethers.js Hardhat Project\n\nThis repo contains a Hardhat and React Dapp starter project. The React Dapp in the `frontend` dir of this repo interacts with Hardhat's example `Greeter.sol` smart contract running on a local blockchain. The Hardhat `Greeter.sol` example contract is the boilerplate contract that Hardhat creates when creating a new Hardhat project via `yarn hardhat init`.\n\nThe React Dapp in this repo looks like this:\n\n![React Dapp](https://res.cloudinary.com/divzjiip8/image/upload/c_scale,w_1280/v1641785505/Screen_Shot_2022-01-03_at_3.52.58_PM_n7ror7.png)\n\nThe Dapp uses the [@web3-react npm package's](https://www.npmjs.com/package/web3-react) injected web3 provider to connect to MetaMask and demonstrates the following functionality:\n* Connecting a Dapp to the blockchain\n* Reading account data from the blockchain\n* Cryptographically signing digital messages\n* Deploying new instances of a smart contract\n* Reading and writing data to and from the deployed smart contract\n\nThis repo can be useful to anyone looking to get a local Ethereum blockchain running and to get a Dapp up and communicating with the local node quickly.\n\nAdditionally, this repo is a companion project to [ChainShot](https://www.chainshot.com)'s [How to Build a React Dapp with Hardhat and MetaMask](https://medium.com/p/9cec8f6410d3) Medium article. The article and this GitHub repo are recommended for anyone wanting to build up their web3 skills and are helpful resources for anyone interested in joining any of [ChainShot's bootcamps](https://www.chainshot.com/bootcamp).\n\nThe smart contract and Hardhat node part of this project were created by installing the [Hardhat npm package](https://www.npmjs.com/package/hardhat) and bootstrapping a Hardhat project by running: `yarn hardhat init`. For more details you can read more in the [Hardhat README doc](https://github.com/nomiclabs/hardhat). The `frontend` part of this project was created using [Create React App](https://github.com/facebook/create-react-app).\n\nPull this project down from GitHub, cd into the project directory and run the following commands to get setup and running.\n\n```shell\nyarn\nyarn compile\nyarn hardhat node\n```\n\nThe commands above will install the project dependencies, compile the sample contract and run a local Hardhat node on port `8545`, using chain id `31337`.\n\nAfter running the above tasks checkout the frontend [README.md](https://github.com/ChainShot/hardhat-ethers-react-ts-starter/tree/main/frontend/README.md) to run a React Dapp using ethers.js that will interact with the sample contract on the local Hardhat node.\n\nSome other hardhat tasks to try out are:\n\n```shell\nyarn hardhat accounts\nyarn hardhat clean\nyarn hardhat compile\nyarn hardhat deploy\nyarn hardhat help\nyarn hardhat node\nyarn hardhat test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Fhardhat-ethers-react-ts-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falchemyplatform%2Fhardhat-ethers-react-ts-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Fhardhat-ethers-react-ts-starter/lists"}