https://github.com/flexyledger/freeminttoken
https://github.com/flexyledger/freeminttoken
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/flexyledger/freeminttoken
- Owner: flexyledger
- Created: 2022-08-01T14:33:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T02:45:32.000Z (over 1 year ago)
- Last Synced: 2024-02-01T21:26:40.093Z (over 1 year ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minting Token using ERC-721a
This project demonstrates how to mint tokens using ERC-721a based on the chiru-labs.github.io/ERC721A standard.
## Prerequisites
Before getting started, make sure you have the following:
* Solidity compiler (version X.X.X)
* Truffle framework (version X.X.X)
* Ganache or any Ethereum test network
* Node.js and npm (Node Package Manager)## Installation
1. Clone the repository:
```bash
git clone https://github.com/flexycode/free-mint-token.git
```2. Install the dependencies:
```bash
npm install
```
## Next.js File SetupTo set up Next.js for this project, follow these steps:
1. Install Next.js globally:
```bash
npm install -g next
```2. Create a pages directory in the root of your project:
```bash
mkdir pages
```
3. Create a new file `index.js` in the pages directory:```javascript
// pages/index.jsimport React from 'react';
const HomePage = () => {
return (
Minting Token using ERC-721a
Welcome to the Minting Token application!
{/* Add your components and logic here */}
);
};export default HomePage;
```
4. Start the Next.js development server:```bash
npm run dev
```5. Open your browser and visit http://localhost:3000 to see the Minting Token application.
## Usage
To mint tokens using ERC-721a, follow these steps:
1. Update the contract configuration in `config.js` file.
2. Compile the smart contract:
```bash
truffle compile
```
3. Deploy the smart contract to your local blockchain or test network:```bash
truffle migrate --network development
```4. Run the script to mint tokens:
```bash
node mintTokens.js
```# Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please submit a pull request.# License
### This project is licensed under the MIT License - flexycode see the LICENSE file for details.
I hope this provides the information you were looking for. Let me know if there's anything else I can assist you with!!
#### [Back to Table of Content](#installation)
---
![]()
![]()
![]()