{"id":27946643,"url":"https://github.com/bitfancy/subscribe-grpc","last_synced_at":"2025-07-13T00:35:59.235Z","repository":{"id":281994003,"uuid":"947121812","full_name":"BitFancy/subscribe-grpc","owner":"BitFancy","description":"get accounts from several dexs using subscribe with yellowstone grpc","archived":false,"fork":false,"pushed_at":"2025-03-12T07:44:27.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T13:56:50.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BitFancy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-12T07:29:01.000Z","updated_at":"2025-03-12T07:44:30.000Z","dependencies_parsed_at":"2025-03-12T08:43:09.688Z","dependency_job_id":null,"html_url":"https://github.com/BitFancy/subscribe-grpc","commit_stats":null,"previous_names":["bitfancy/subscribe-grpc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Fsubscribe-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Fsubscribe-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Fsubscribe-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Fsubscribe-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BitFancy","download_url":"https://codeload.github.com/BitFancy/subscribe-grpc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892520,"owners_count":21820646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T13:56:49.160Z","updated_at":"2025-05-07T13:56:52.514Z","avatar_url":"https://github.com/BitFancy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana PumpFun Copy Trading Bot in Rust 🚀\n\n## Overview\n\nA high-performance copy trading bot for PumpFun DEX on Solana, written in Rust 🦀. \nThe bot monitors specific wallets and automatically replicates their trading activities with configurable parameters and advanced features like Jito MEV integration.\n\n## Key Features\n\n### 🚀 Performance \u0026 Architecture\n- **Rust-Powered Performance**: Built with Rust for optimal speed and memory safety\n- **Dual Monitoring Modes**: \n  - gRPC streaming via Yellowstone/InstantNodes\n  - WebSocket-based wallet monitoring\n- **Asynchronous Architecture**: Using Tokio for non-blocking operations\n\n### 🔒 Security \u0026 Configuration\n- **Environment-Based Setup**: Secure configuration via `.env` file\n- **Robust Error Handling**: Comprehensive error management and logging\n- **Configurable Parameters**: Customizable slippage, amounts, and monitoring settings\n\n### 📊 Trading Features\n- **Smart Copy Trading**: \n  - Automatic trade detection and replication\n  - Configurable trade size (default: 50% of detected amount)\n  - Support for both buy and sell operations\n- **PumpFun DEX Integration**: \n  - Direct interaction with PumpFun bonding curves\n  - Automatic token account creation and management\n- **Jito MEV Integration**: Enhanced transaction priority\n\n## Directory Structure\n\n```\nsrc/\n├── common/                 # Common utilities and shared components\n│   ├── logger.rs          # Logging system with colored output\n│   └── utils.rs           # Configuration and utility functions\n├── dex/                   # DEX integration components\n│   └── pump_fun.rs        # PumpFun DEX interaction logic\n├── engine/                # Core trading engine\n│   └── monitor/           # Transaction monitoring systems\n│       ├── grpc_monitor.rs    # gRPC-based monitoring\n│       └── wallet_monitor.rs  # WebSocket-based monitoring\n├── services/              # External service integrations\n│   └── jito.rs           # Jito MEV service integration\n└── proto/                 # Protocol definitions\n    └── instantnode.rs     # InstantNode gRPC client implementation\n```\n\n## Environment Variables\n\n```env\n# Required Configuration\nPRIVATE_KEY=\u003cyour_base58_private_key\u003e\nRPC_HTTPS=\u003cyour_rpc_endpoint\u003e\nRPC_WSS=\u003cyour_websocket_endpoint\u003e\nRPC_GRPC=\u003cyour_grpc_endpoint\u003e\nRPC_TOKEN=\u003cyour_rpc_auth_token\u003e\n\n# Optional Configuration\nSLIPPAGE=10               # Slippage tolerance in percentage\nLOG_LEVEL=debug          # Logging level (debug/info/error)\n```\n\n## Usage\n\n1. **Installation**\n   ```bash\n   git clone \u003crepository_url\u003e\n   cd solana-pumpfun-bot\n   cargo build --release\n   ```\n\n2. **Configuration**\n   - Copy `.env.example` to `.env`\n   - Configure your environment variables\n\n3. **Running the Bot**\n   ```bash\n   cargo run --release\n   ```\n\n### Monitoring Modes\n\n#### gRPC Monitoring\n```bash\n# Monitor PumpFun transactions\ncargo run -- --endpoint $RPC_GRPC --x-token $RPC_TOKEN subscribe \\\n  --transactions \\\n  --transactions-vote false \\\n  --transactions-failed false \\\n  --transactions-account-include \"o7RY6P2vQMuGSu1TrLM81weuzgDjaCRTXYRaXJwWcvc\"\n```\n\n#### WebSocket Monitoring\n```bash\n# Monitor wallet updates\ncargo run -- --ws-url $RPC_WSS monitor-wallet\n```\n\n## Technical Details\n\n### Trading Logic\n- The bot monitors specified wallets for PumpFun DEX interactions\n- Upon detecting a trade:\n  1. Extracts transaction details (mint, amount, direction)\n  2. Validates the trading parameters\n  3. Executes a copy trade with configured parameters\n  - For buys: Uses 50% of virtual SOL reserves\n  - For sells: Uses 50% of available token balance\n\n### Safety Features\n- Transaction validation and simulation\n- Automatic token account creation\n- Balance checks before execution\n- Comprehensive error handling and logging\n\n### Logging System\n- Colored output for different message types\n- Transaction counting and tracking\n- Detailed timing information\n- Multiple log levels (DEBUG, INFO, ERROR, SUCCESS, WARNING)\n\n## Support\n\nFor support and inquiries, please connect via Telegram: 📞 [bitfancy](https://t.me/bitfancy)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfancy%2Fsubscribe-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfancy%2Fsubscribe-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfancy%2Fsubscribe-grpc/lists"}