/moonshot-swap

Primary LanguageTypeScriptMIT LicenseMIT

Moonshot Swap Transaction Backend

This project facilitates swap (buy/sell) transactions using the Moonshot SDK, TypeScript, Solana web3, and solana/spl-token. When a swap request is received, a transaction is created and executed on the Solana blockchain.

Features

  • Handles buy and sell swap requests
  • Integrates with Moonshot SDK
  • Utilizes Solana web3 for blockchain interactions
  • Manages SPL tokens using solana/spl-token

Requirements

  • Node.js (v14 or later)
  • Yarn or npm
  • Solana CLI
  • Moonshot SDK

Installation

  1. Clone the repository:
git clone https://github.com/dappsol/moonshot-swap.git
cd moonshot-swap
  1. Install the dependencies:

Using Yarn:

yarn install

Using npm:

npm install

Usage

  1. Compile the TypeScript code:

Using Yarn:

yarn build

Using npm:

npm run build
  1. Run the project:

Using Yarn:

yarn start

Using npm:

npm start

Project Structure

.
├── src
│   ├── index.ts       # Entry point of the application
│   ├── config.ts      # Configuration file
│   ├── swap.ts        # Swap transaction logic
│   ├── utils.ts       # Utility functions
├── .env               # Environment variables
├── package.json       # Project dependencies and scripts
├── tsconfig.json      # TypeScript configuration
└── README.md          # Project documentation

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or support, please contact [your email] or open an issue on GitHub.

Here is a sample README file for your project:


Moonshot Swap Transaction Backend

This 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.

Features

  • Handle swap (buy/sell) requests.
  • Create moonshot swap transactions.
  • Integration with Solana blockchain.
  • Deployable to Vercel.

Technologies

  • Node.js
  • Express.js
  • TypeScript
  • moonshot-sdk
  • @solana/web3.js
  • @solana/spl-token

Installation

  1. Clone the repository:

    git clone https://github.com/dappsol/moonshot-swap.git
    cd moonshot-swap
  2. Install dependencies:

    npm install
  3. Update the config.ts file with any additional configuration settings as needed.

Contact

Please fork to use it and follow me on github.

If you want more customized app, please contact @poseiman in Telegram and .solbotdev in Discord