Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 665 Bytes

File metadata and controls

37 lines (25 loc) · 665 Bytes

Swap API (V1) - Quote, Build & Send Script

This script demonstrates how to get a quote for a swap, build the swap, and then send the swap using the Jupiter V1 API.

Prerequisites

  • Node.js (v16 or higher)
  • npm (v10 or higher)
  • Solana Wallet Private Key
  • Helius RPC API key
  • Jupiter V1 API Key (optional) - get it here

Usage

  1. Clone the repository
git clone https://github.com/Jupiter-DevRel/typescript-examples.git
  1. Navigate to the swap/quote-build-send directory
cd swap/quote-build-send
  1. Install the dependencies
npm install
  1. Run the script
npm run example