尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
BSV Exchange
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A modern web application for burning L1 tokens (ETH, SOL, AVAX, TRX, BTC) and receiving BSV in return. Built with Next.js 15, TypeScript, and Tailwind CSS.
| Token | Symbol | Exchange Rate | Burn Address |
|---|---|---|---|
| Ethereum | ETH | 0.0015 BSV | 0x000000000000000000000000000000000000dEaD |
| Solana | SOL | 0.0020 BSV | 11111111111111111111111111111112 |
| Avalanche | AVAX | 0.0018 BSV | 0x000000000000000000000000000000000000dEaD |
| TRON | TRX | 0.0008 BSV | T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb |
| Bitcoin | BTC | 0.0001 BSV | 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2 |
git clone https://github.com/yourusername/bsvex.git
cd bsvex
npm install
cp .env.example .env.local
Add your environment variables:
# Blockchain RPC URLs
ETHEREUM_RPC_URL=https://mainnet.infura.io/v3/YOUR_PROJECT_ID
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
TRON_RPC_URL=https://api.trongrid.io
# Supabase (for database)
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
# BSV Network
BSV_RPC_URL=your_bsv_rpc_url
BSV_PRIVATE_KEY=your_bsv_private_key
npm run dev
src/
├── app/ # Next.js App Router
│ ├── api/ # API routes
│ │ └── exchange/ # Exchange API endpoints
│ ├── history/ # Transaction history page
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home page
├── components/ # React components
│ ├── Header.tsx # Navigation header
│ ├── TokenBurnForm.tsx # Main exchange form
│ ├── Stats.tsx # Statistics display
│ ├── TransactionHistory.tsx # Transaction history
│ └── Footer.tsx # Site footer
└── lib/ # Utility libraries
└── services/ # Service classes
└── blockchain.ts # Blockchain integration
Burn tokens and receive BSV.
Request Body:
{
"token": "ETH",
"amount": "2.5",
"bsvAddress": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"userAddress": "0x1234...",
"burnTxHash": "0xabcd..." // Optional
}
Response:
{
"success": true,
"transactionId": "tx_1234567890_abc123",
"bsvAmount": "0.00375",
"status": "completed",
"message": "Token burn successful. BSV has been issued to your address.",
"bsvTxHash": "0x9876543210..."
}
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
# Build the application
npm run build
# Start production server
npm start
The application can be deployed to any platform that supports Next.js:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
This software is provided "as is" without warranty. Token burning is irreversible. Always double-check addresses and amounts before proceeding with any transactions.