{"id":22870631,"url":"https://github.com/enlomy/moonshot-swap","last_synced_at":"2025-05-05T22:15:13.090Z","repository":{"id":248516219,"uuid":"828910135","full_name":"enlomy/moonshot-swap","owner":"enlomy","description":"moonshot swap, moonshot-sdk","archived":false,"fork":false,"pushed_at":"2024-07-21T16:34:36.000Z","size":57,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T22:15:08.071Z","etag":null,"topics":["express","moosnshot-dsk","node-backend","solana-spl-token","solana-web3","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/enlomy.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-07-15T11:24:27.000Z","updated_at":"2024-11-19T15:44:16.000Z","dependencies_parsed_at":"2024-07-21T18:16:09.803Z","dependency_job_id":"1c83dcc3-da96-460b-b45a-acb23522e943","html_url":"https://github.com/enlomy/moonshot-swap","commit_stats":null,"previous_names":["poseisol/moonshot-swap","dappsol/moonshot-swap","s0lb0t/moonshot-swap","enlomy/moonshot-swap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlomy%2Fmoonshot-swap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlomy%2Fmoonshot-swap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlomy%2Fmoonshot-swap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlomy%2Fmoonshot-swap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enlomy","download_url":"https://codeload.github.com/enlomy/moonshot-swap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584332,"owners_count":21771945,"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":["express","moosnshot-dsk","node-backend","solana-spl-token","solana-web3","typescript"],"created_at":"2024-12-13T13:15:22.277Z","updated_at":"2025-05-05T22:15:13.074Z","avatar_url":"https://github.com/enlomy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moonshot Swap Transaction Backend\n\nThis is a Node.js and Express backend project that facilitates moonshot swap transactions using moonshot-sdk, TypeScript, Solana web3, and solana/spl-token. It listens for swap (buy/sell) requests and creates transactions accordingly. The project is deployable to Vercel.\n\n## Features\n- Handle swap (buy/sell) requests.\n- Create moonshot swap transactions.\n- Integration with Solana blockchain.\n- Deployable to Vercel.\n\n## Technologies\n- Node.js\n- Express.js\n- TypeScript\n- moonshot-sdk\n- @solana/web3.js\n- @solana/spl-token\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/dappsol/moonshot-swap.git\n   cd moonshot-swap\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Update the `config.ts` file with any additional configuration settings as needed.\n\n## Usage\n\n### Starting the Project\nTo start the project, run:\n```bash\nnpm start\n```\nor\n```bash\nyarn start\n```\n\nThe project will run at:\n```\nhttp://localhost:9000\n```\n\n### Swap Endpoint\nThe swap endpoint is available at:\n```\nhttp://localhost:9000/api/moonshot/swap\n```\n\n### Creating Transactions\nTo create a transaction, use the following parameters:\n\n- `mintAddress`: Token mint address for buying/selling.\n- `amount`: When buying, input SOL amount; when selling, omit this value.\n- `tradeDirection`: Use `\"BUY\"` for buying and `\"SELL\"` for selling.\n- `slippageBps`: Default is `100` and can be omitted.\n\n## Contact\n\n### Please fork to use it and follow me on github.\n\n### If you want more customized app, please contact [@s0lb0t](https://t.me/s0lb0t) in Telegram and [.s0lb0t](https://discordapp.com/users/1074553493974691840) in Discord\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenlomy%2Fmoonshot-swap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenlomy%2Fmoonshot-swap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenlomy%2Fmoonshot-swap/lists"}