{"id":19510708,"url":"https://github.com/meta-ben/cryptoswaper","last_synced_at":"2026-02-06T19:31:03.157Z","repository":{"id":237982799,"uuid":"795630553","full_name":"Meta-Ben/CryptoSwaper","owner":"Meta-Ben","description":"2022 - NodeJS Crypto bot to swap cryptos","archived":false,"fork":false,"pushed_at":"2024-07-15T22:50:39.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T21:44:01.687Z","etag":null,"topics":["crypto","crypto-bot","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Meta-Ben.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-05-03T17:30:45.000Z","updated_at":"2024-07-16T00:57:17.000Z","dependencies_parsed_at":"2024-08-04T16:50:24.670Z","dependency_job_id":"4425e8fe-a964-45a7-8923-2f0eeca0188e","html_url":"https://github.com/Meta-Ben/CryptoSwaper","commit_stats":null,"previous_names":["amealky/cryptoswaper","meta-ben/cryptoswaper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Meta-Ben/CryptoSwaper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FCryptoSwaper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FCryptoSwaper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FCryptoSwaper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FCryptoSwaper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meta-Ben","download_url":"https://codeload.github.com/Meta-Ben/CryptoSwaper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meta-Ben%2FCryptoSwaper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29174057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T19:28:14.811Z","status":"ssl_error","status_checked_at":"2026-02-06T19:28:13.420Z","response_time":59,"last_error":"SSL_read: 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":["crypto","crypto-bot","javascript"],"created_at":"2024-11-10T23:16:48.899Z","updated_at":"2026-02-06T19:31:03.135Z","avatar_url":"https://github.com/Meta-Ben.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"``Reupload project from 2022 : This project was recovered so don't take commits into accounts``\n\n\n\u003ch1 align=\"center\"\u003e🪙 CryptoSwaper 🪙\u003c/h1\u003e        \n\n\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://img.shields.io/badge/NodeJS-%204--2--1?style=for-the-badge\u0026label=language\u0026color=green\"\u003e\n \u003cimg src=\"https://img.shields.io/badge/NPM-%204--2--1?style=for-the-badge\u0026label=platform\u0026color=red\"\u003e\n \u003cimg src=\"https://img.shields.io/badge/Terminal-%204--2--1?style=for-the-badge\u0026label=platform\u0026color=black\"\u003e\n\u003c/p\u003e\n\n# About\n\n2022 project \n\nNodeJS Bot to swap cryptos on multiple router (like PancakeSwap)\n\n\u003ch2\u003e How to install 📦 \u003c/h2\u003e\n1 - Clone this repository\n\n2 - Open a terminal at the root of the folder\n\n3 - Run : `npm install`\n\n\u003ch2\u003e How to setup :wrench: \u003c/h2\u003e\n\n- open to the `.env` file\n\nThis is how it work : \n\n`BNB_CONTRACT` =\u003e its just the contract address of the BNB on the BSC ( BNB is offenly use as money to spend for new tokens )\n\n`TOKEN_OUT_CONTRACT` =\u003e This is the contract address of the money you want to SPEND for buying tokens\n\n`AMOUNT_OF_TOKEN_OUT_TO_SPEND` =\u003e this is the amount of token you want to SPEND \n\n`ROUTER` =\u003e this is the contract address of the router you want to use to do your swap ( like a provider by default is pancakeswap )\n\n`FACTORY` =\u003e this is the contract address of the factory you want to use\n\n`YOUR_ADDRESS` =\u003e this is where you need to put the address of your DESTINATION wallet ( where the token freshly buyed will be send )\n\n`YOUR_MNEMONIC` =\u003e the code has to access privatly to your wallet in order to spend money accross a swap platform , so here you need to put you private key\n\n`SLIPPAGE` =\u003e this if the percentage of slippage you accept to loose in the transaction\n`GWEI` =\u003e this is the Gas fees amount max you accept to pay\n`GAS_LIMIT` =\u003e this is the gas limit\n`MIN_LIQUIDITY_ADDED` =\u003e this if the min liquidity the token you want to buy should had for you to accept buying some\n\n`TOKEN_IN_CONTRACT` =\u003e this is the contract address of the money you want to BUY\n\n`WSS_NODE` =\u003e This is the SCAN provider \n\n\u003ch2\u003e How to use :moneybag: \u003c/h2\u003e\n\n1 - Run : `npm run swap`\n\nIt will show you a prompt with the title of the project and a menu with a choice\n\n2 - Enter like :\n 2.1 - `1` to buy a token with BNB\n 2.2 - `2` to buy a token with another token\n 2.3 - `0` to exit the program\n 2.4 - any other choice will restart the prompt\n\n then press enter\n\nIt will simply automatically : \n- get the pair address to do the swap\n- get the liquidity\n- show you a visualisation of the transaction that will be done\n- approve the token you need to spend\n- do the transaction\n- let you know if it succeed or fail\n\nThats it :)\n\nEnjoy !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-ben%2Fcryptoswaper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeta-ben%2Fcryptoswaper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-ben%2Fcryptoswaper/lists"}