https://github.com/slingercode/eth-hardhat
Test on ethereum blockchain
https://github.com/slingercode/eth-hardhat
ethereum hardhat nextjs solidity
Last synced: about 2 months ago
JSON representation
Test on ethereum blockchain
- Host: GitHub
- URL: https://github.com/slingercode/eth-hardhat
- Owner: slingercode
- License: mit
- Created: 2021-10-10T05:21:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-04T15:08:11.000Z (almost 4 years ago)
- Last Synced: 2025-02-23T16:26:52.843Z (over 1 year ago)
- Topics: ethereum, hardhat, nextjs, solidity
- Language: JavaScript
- Homepage:
- Size: 951 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic Sample Hardhat Project
Try running some of the following tasks:
```shell
# 1. Compile the Smart Contract
npx hardhat compile
# opc: Do the test
npx hardhat test
# 2. Create a local EVM
npx hardhat node
# 3. Deploy the contract
npx hardhat run scripts/deploy.js --network localhost
```
We need some of the test addresses in order to interact with the blockchain.
To do this wee need a wallet like [MetaMask](https://metamask.io) and just
import the some address with the secret key that the `npx hardhat node` will show
## Next.js
Create a environment variable called `NEXT_PUBLIC_CONTRACT_ADDRESS` and
paste the address of the deployed contract
ex: `NEXT_PUBLIC_CONTRACT_ADDRESS=0x44sx34...`
Start the local enviroment
`yarn dev`
That's all 🙃 (I think...)
### FAQ
If there's an error related to de _nonce_ being to high, then you can go to the MetaMask
wallet and open the advanced settings of your account and reset it.
---
## Reference
- [The Complete Guide to Full Stack Ethereum Development ](https://dev.to/dabit3/the-complete-guide-to-full-stack-ethereum-development-3j13)
- [Hardhat](https://hardhat.org/getting-started/)
- [Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial](https://www.youtube.com/watch?v=M576WGiDBdQ)
## Screen Shots


