{"id":32653418,"url":"https://github.com/moda20/newswamrttradeapi","last_synced_at":"2026-07-08T09:31:22.108Z","repository":{"id":204202628,"uuid":"407964985","full_name":"moda20/newSwamrtTradeApi","owner":"moda20","description":"New smart trade api. Dry run uniswap, pancakeswap, ... token swaps with precision and profit in mind","archived":false,"fork":false,"pushed_at":"2023-10-28T22:04:11.000Z","size":279,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T08:28:09.359Z","etag":null,"topics":["pancakeswap-bot","swaps","uniswap-bot","uniswap-v2","web3"],"latest_commit_sha":null,"homepage":"https://moda20.github.io/Portfolio/","language":"JavaScript","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/moda20.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}},"created_at":"2021-09-18T20:50:41.000Z","updated_at":"2024-07-10T12:06:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"61240794-6037-46e8-8469-a4b910d041ca","html_url":"https://github.com/moda20/newSwamrtTradeApi","commit_stats":null,"previous_names":["moda20/newswamrttradeapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moda20/newSwamrtTradeApi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moda20%2FnewSwamrtTradeApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moda20%2FnewSwamrtTradeApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moda20%2FnewSwamrtTradeApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moda20%2FnewSwamrtTradeApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moda20","download_url":"https://codeload.github.com/moda20/newSwamrtTradeApi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moda20%2FnewSwamrtTradeApi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35260671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["pancakeswap-bot","swaps","uniswap-bot","uniswap-v2","web3"],"created_at":"2025-10-31T08:19:10.596Z","updated_at":"2026-07-08T09:31:22.103Z","avatar_url":"https://github.com/moda20.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uniswap V2 Dry Run API Server\n\nThe Uniswap V2 Dry Run API Server is a Node.js Express.js application that allows you to perform dry runs of Uniswap V2\nswaps on forked networks using Ganache. It also enables you to run multiple swaps with custom configurations.\nAdditionally, you can select the target node and specify from which block to fork.\n\n## Features\n\n- Dry run Uniswap V2 calls on forked networks using Ganache.\n- Run multiple swaps with customizable configurations using the uniswap contracts or using a custom smartTrade solidity Contract\n- Choose the target node and specify the block from which to fork.\n\n## Prerequisites\n\nBefore getting started, make sure you have the following installed:\n\n- [Node.js](https://nodejs.org/)\n- [npm](https://www.npmjs.com/)\n- [Ganache](https://www.trufflesuite.com/ganache)\n\n## Installation\n\n1. Clone the project repository:\n\n```bash\ngit clone https://github.com/moda20/newSwamrtTradeApi.git\n```\n\nChange to the project directory:\n\n```bash\ncd newSwamrtTradeApi\n```\nInstall the project dependencies:\n\n```bash\nnpm install\n```\n### Configuration\n\nThe configuration file config/node.yml allows you to specify the following settings:\n\n- rpcNodes: Number of nodes to start with the server.\n- exec_node: nodes to run actual live transactions (not dry run).\n\n### Usage\n\nStart the Uniswap V2 Dry Run API Server:\n\n```bash\nnpm start\n```\n\nAccess the API endpoints to perform dry runs and run swaps.\n\n### API Endpoints\n\n* POST /api/SingleSwap: Perform a single swap with the possibility of running a dry run, or multiple consecutive swaps including many token hops.\n* POST /api/depositWBNB: Deposit WBNB a standard ERC20 token with a ratio of 1 to 1 with BNB (can be used really for any tokens like WETH).\n* POST /api/getBalance: returns the balance of a user in a specific token \n* POST /api/getAmountsOut: Calculates the amountsOut of a swap based on a list of swap tokens\n* POST /api/getAmountsIn: Calculates the amountsIn of a swap based on a list of swap tokens\n* POST /api/dryExecute: Execute a list of swaps based on a token Path with the goal of acquiring a minimum of profit (arbitrage based)\n* POST /api/reserves: read the reserves from the local database for all tokens\n\n\n### Contributing\nIf you would like to contribute to this project, please open pull requests with descriptions or start by creating an issue.\n\n### License\nThis project is licensed under the MIT License.\n\n### Links\n* [Uniswap V2](https://uniswap.org/)\n* [Ganache](https://www.trufflesuite.com/ganache)\n\n\n### Contact\nFor questions or support, please contact kadhem03@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoda20%2Fnewswamrttradeapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoda20%2Fnewswamrttradeapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoda20%2Fnewswamrttradeapi/lists"}