πͺΆ Feather Multi Chain Wallet System, εΊδΊ deno ηε€ιΎζ―ζηι±ε η³»η»οΌεηΎ½ζ―δΈζ ·θ½»γ
The Full Structure:
+---------------------------+
| Multi Chain Wallet System |
+---------------------------+
APIS about Priv | | APIs
HTTPS&IN SAME Server| | +----------+
+-------------+ | +-----------------| Frontend |
| Private Key |-----+ | +----------+
| Vaultπ¦ | | +----------------+
+-------------+ +-----------------| Other Services |
+----------------+
A Deno-based backend service for managing multi-chain cryptocurrency wallets, supporting Ethereum and TRON networks.
- Multi-chain support (Ethereum, Tron, Bitcoin, Aptos, Sui...)
- Account management and generation
- Token operations (USDT transfers, sweeping)
- Password-protected administrative operations
- Balance checking and monitoring
- Network configuration management
- Comprehensive API documentation
- Deno version 1.x or higher
- Access to Ethereum and TRON networks (mainnet/testnet)
- Environment for secure key management
- Clone the repository:
git clone [repository-url]
cd feather-multi-chain-wallet-system- Install Deno (if not already installed):
- macOS/Linux:
curl -fsSL https://deno.land/x/install/install.sh | sh- Windows:
iwr https://deno.land/x/install/install.ps1 -useb | iexcd deno
Start the server in development mode:
deno task devStart the server in prod mode:
deno task start
The server will start on port 8000 by default.
Deploy to the deno:
deployctl deploy --prod --project=[proj-name] app.ts
- Operations involving private keys should only be performed within internal networks for service-to-service interactions
- Currently, two types of APIs handle private keys:
/eth/sweep/*/eth/transfer/*
- Implement proper security measures in production environments
- Never expose private key operations to public networks
The API is organized into several sections:
GET /- Check API statusGET /docs- View API documentation
GET /set_env_password- Set/update environment passwordGET /check_env_password- Verify password validity
GET /eth/add_token_address/:tokenAddress- Add token addressGET /eth/remove_token_address/:tokenAddress- Remove token address
GET /eth/sweep/usdt- Sweep USDT to admin addressGET /eth/transfer/usdt- Transfer USDT between addresses
GET /eth/set_network- Set Ethereum networkGET /eth/set_min_balance- Set minimum balance threshold, it will be check when sweep
GET /eth/acct_gen_admin- Generate admin accountGET /eth/get_admin- Get Admin InfoGET /eth/acct_gen- Generate new accountGET /eth/balances/:addr- Get Balance of Addr
- Various endpoints for TRON address management and transactions
For detailed API documentation, visit /docs endpoint after starting the server.
The API uses standard HTTP status codes:
- 200: Success
- 400: Bad request
- 401: Unauthorized
- 404: Not found
- 500: Server error
deno/
βββ app.ts # Application entry point
βββ routes/
β βββ ethereum.ts # Ethereum-related routes
β βββ tron.ts # TRON-related routes
β βββ misc.ts # Miscellaneous routes
βββ services/
β βββ ethereum.ts # Ethereum service implementations
βββ utils/
βββ auth.ts # Authentication utilities
βββ utils.ts # General utilities
For production deployment:
- Implement proper authentication mechanisms
- Set up rate limiting
- Use secure environment variables
- Configure CORS appropriately
- Implement monitoring and logging
- Use HTTPS
- Regular security audits
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
MIT License
Copyright (c) 2024 Feather Multi Chain Wallet System
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
TODO.