This project is a decentralized NFT (Non-Fungible Token) trading platform built on the Secret Network. It offers cross-chain capabilities with networks such as Sepolia Ethereum, Scroll, and more, enabling secure and private trading of digital assets.
- Secret Network Integration: Utilizes Secret Network for privacy-preserving smart contracts.
- Cross-Chain Compatibility: Supports cross-chain transactions with Sepolia Ethereum and Scroll.
- Secure Trading: Ensures secure and private NFT transactions.
- User-Friendly Interface: Intuitive interface for easy trading and asset management.
- Decentralized: Fully decentralized platform with no central authority.
- Node.js (version 14.x or higher)
- npm (version 6.x or higher)
- Docker (for running local blockchain nodes)
- Secret Network CLI
- Ethereum wallet (e.g., MetaMask)
git clone https://github.com/yourusername/nft-token-trading.git
cd nft-token-trading
npm install
Create a .env
file in the root directory and add the following variables:
SECRET_NETWORK_RPC_URL=<your-secret-network-rpc-url>
SEPOLIA_ETH_RPC_URL=<your-sepolia-eth-rpc-url>
SCROLL_RPC_URL=<your-scroll-rpc-url>
PRIVATE_KEY=<your-private-key>
If you need to run local nodes for testing:
-
Secret Network:
docker run -it --rm -p 26657:26657 -p 1317:1317 -p 5000:5000 \ --name secret-node enigmampc/secret-network-local:latest
-
Sepolia Ethereum and Scroll nodes can be started similarly using their respective Docker images.
npm start
The application will be available at http://localhost:3000
.
- Connect Wallet: Use MetaMask or any supported wallet to connect to the platform.
- Mint NFT: Navigate to the minting section to create your own NFTs.
- Trade NFT: Use the marketplace to list your NFTs for sale or purchase available NFTs.
- Cross-Chain Transactions: Utilize the cross-chain functionality to trade NFTs across different networks.
- src/: Contains the source code for the application.
- components/: React components for the UI.
- contracts/: Smart contracts for Secret Network and other blockchains.
- services/: Services for interacting with blockchain nodes.
- utils/: Utility functions and helpers.
- public/: Public assets and static files.
- .env: Environment variables.
We welcome contributions from the community! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature-branch-name
. - Create a pull request.
Thank you for using our NFT Token Trading Platform! We hope you enjoy the seamless and secure trading experience.