{"id":22809067,"url":"https://github.com/solguru310/raydium-tx-telegram-bot","last_synced_at":"2026-02-10T03:33:38.256Z","repository":{"id":260867326,"uuid":"882571014","full_name":"solguru310/raydium-tx-telegram-bot","owner":"solguru310","description":"This is a Telegram Bot for MonitorFi to get a wallet SOL balance and show the JSON parse data of Raydium AMM and Raydium CP Swap transactions.","archived":false,"fork":false,"pushed_at":"2025-02-10T16:31:53.000Z","size":91,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T13:14:23.405Z","etag":null,"topics":["raydium","raydium-amm","raydium-cp-swap","solana","spl-token","telegram-bot","transaction"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/solguru310.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,"zenodo":null}},"created_at":"2024-11-03T06:23:49.000Z","updated_at":"2025-07-03T14:14:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"10c47721-325e-42d8-9762-ce34cbbfa0ab","html_url":"https://github.com/solguru310/raydium-tx-telegram-bot","commit_stats":null,"previous_names":["solguru310/monitorfi-raydium-tg-bot","solguru310/raydium-tx-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/solguru310/raydium-tx-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solguru310%2Fraydium-tx-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solguru310%2Fraydium-tx-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solguru310%2Fraydium-tx-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solguru310%2Fraydium-tx-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solguru310","download_url":"https://codeload.github.com/solguru310/raydium-tx-telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solguru310%2Fraydium-tx-telegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29289910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T02:32:08.756Z","status":"ssl_error","status_checked_at":"2026-02-10T02:30:31.937Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["raydium","raydium-amm","raydium-cp-swap","solana","spl-token","telegram-bot","transaction"],"created_at":"2024-12-12T11:13:24.293Z","updated_at":"2026-02-10T03:33:38.219Z","avatar_url":"https://github.com/solguru310.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raydium Transaction Parse Telegram Bot\n\nMain objective: create a telegram bot with a user flow, described on a schema below.\n\n![alt text](./image.png)\n\n\n## Contact me\nTelegram: [@dwlee918](https://t.me/@dwlee918)\n\n\n## Key Points / Requirements:\n\n- ONLY SOLANA BLOCKCHAIN\n- Only parse Raydium swap transactions, ignore all other. \nAlso, ignore swaps without SOL being used as either IN or OUT token.\nThe output of parsed transaction should be of the following type:\n\n```\nexport type TradeType = 'BUY' | 'SELL';\n\nexport interface Swap {\n    // transaction signature\n    signature: string;\n    // ms since epoch when the transaction was processed\n    timestamp: number;\n    // mint of the alt token being traded\n    tokenMint: string;\n    // decimals of the alt token being traded\n    tokenDecimals: number;\n    // type of trade (BUY or SELL)\n    type: TradeType;\n    // UI amount of the input token, without decimals\n    amountIn: number;\n    // UI amount of the output token, without decimals\n    amountOut: number;\n    // raydium amm pool id which was used for the swap\n    poolId: string;\n    // address of the user who signed the transaction\n    signer: string;\n}\n```\n\n- Try to optimize it to only ONE rpc call per user input (applies both for parse tx and get balance), that’s important.\n- You mustn’t use any third-party API’s for parsing swap transaction, only solana json rpc.\n- Get balance should work only with System Program accounts. Use any API you’re most comfortable with for converting SOL balance to USD.\n- Code should be as clean and understandable as possible. Try avoiding using any at all, unknown as much as possible.\n\n\n## Tech Stack:\n- NodeJs+TypeScript\n- GrammyJs as a telegram bot api wrapper\n- @solana/web3.js as a solana network json rpc wrapper\n- Any other 3rd party package of your choice (but don’t overcomplicate things)\n\n\n## How to run\n\n### Install Dependencies\n```\nnpm install\n```\n\n### Run Project\n```\nnpm start\n```\n\n### Screenshots\n\n![alt text](./image-1.png)\n\n![alt text](./image-2.png)\n\n![alt text](./image-3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolguru310%2Fraydium-tx-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolguru310%2Fraydium-tx-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolguru310%2Fraydium-tx-telegram-bot/lists"}