Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fullstack-development/frontend-practice-nft
https://github.com/fullstack-development/frontend-practice-nft
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/fullstack-development/frontend-practice-nft
- Owner: fullstack-development
- Created: 2024-09-12T12:13:49.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T14:56:47.000Z (2 months ago)
- Last Synced: 2024-09-13T03:14:14.336Z (2 months ago)
- Language: Solidity
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend practice NFT
## Install dependencies
```bash
$ npm install
```## Configure .env
Create a `.evn` file in the root of the repository. Use `.evn.example` as an example.
1. First get your Arbitrum Sepolia account private key (for example, you can get it from Metamask).
2. Get Arbitrum Sepolia RPC URL to connect to Arbitrum Sepolia (you can use alchemy, infura or public RPC URLs from https://chainlist.org)
3. Get an API key from etherscan. You need to register at [arbiscan.io](https://arbiscan.io/), go to My Profile -> API Keys and get the key.
4. You will need to get some ETH for deploy. Go to https://faucets.chain.link/ or any other faucet.```bash
# EOA private key (with ETH in Arbitrum Sepolia, to sign tx)
WALLET_PRIVATE_KEY=""
# Arbitrum Sepolia RPC URL (to connect to Arbitrum Sepolia)
ARBITRUM_SEPOLIA_RPC_URL=""
# Explorer API key (for verification process)
ARBISCAN_API_KEY=""
```## Deploy smart-contract
Run the command:
```bash
$ npm run deploy
```You will see something like this:
```bash
➜ frontend-practice-nft npm run deploy> deploy
> npx hardhat compile && npx hardhat ignition deploy ignition/modules/BimkonEyes.js --network sepolia --verifyCompiled 13 Solidity files successfully (evm target: london).
✔ Confirm deploy to network arbitrumSepolia (421614)? … yes
Hardhat Ignition 🚀Deploying [ BimkonEyesModule ]
Batch #1
Executed BimkonEyesModule#BimkonEyes[ BimkonEyesModule ] successfully deployed 🚀
Deployed Addresses
BimkonEyesModule#BimkonEyes - 0xEe7356FB1362fD659D03892719d424Bd8D9D8f70
Verifying deployed contracts
Verifying contract "contracts/BimkonEyes.sol:BimkonEyes" for network arbitrumSepolia...
Successfully verified contract "contracts/BimkonEyes.sol:BimkonEyes" for network arbitrumSepolia:
- https://sepolia.arbiscan.io//address/0xEe7356FB1362fD659D03892719d424Bd8D9D8f70#code
```In this example smart-contract address is 0xEe7356FB1362fD659D03892719d424Bd8D9D8f70 (you will see other address).
You'll find a verified smart-contract code at a link like this - https://sepolia.arbiscan.io//address/0xEe7356FB1362fD659D03892719d424Bd8D9D8f70#code.