Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Safucard
This is a dApp project that showcases how to integrate Alchemy’s APIs to retrieve a wallet’s BEP-20 token data which includes the whale status, the first and most recent tokens held, and address age based on its first transaction on a Slick Card Design and is optionally minted as an NFT.
DEMO
TECH STACK/ PREREQUISITES
How To Setup
git clone https://github.com/Domistro16/safucard.git cd safucard
Configure .env variables
Copy .env.example variables to .env using the following command:
Then update your .env variables for each folder
Scorecard_NFT:
This includes your RPC_URL and your Deployer's Private key
SafuServer:
This includes your Alchemy Key and your Pinata Gateway URL and Pinata JWT
scorecard-frontend:
This includes the NFT Contract Address and the API Url to your Server
Get Your Alchemy Key:
Start the Express Server
cd SafuServer npm run build npm run dev
Deploy/Use Already Deployed Testnet Contract
You can choose to deply a new NFT contract:
cd Scorecard_NFT npx hardhat compile npx hardhat run ./scripts/deploy.ts
Or Use the Already Deployed Contract:
How To Interact With Frontend
cd scorecard-frontend npm run dev
Smart Contract
0x2B20F646CEdB8D40f2a37358A3b712ced3D5B294
mintNFT(tokenURI)
📡 API / Endpoints
/api/address/${address}
Notes
License
This project is licensed under the MIT License.
Contact
Email: [email protected]