Skip to content

wicky0x/raydium-sdk-swap-no-mainnet.json-required

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raydium SDK to swap tokens without downloading the long mainnet.json file

Create an .env file and pass your RPC_URL and WALLET_PRIVATE_KEY.

Set the tokenA and tokenB in src/index.js swapConfig.

Run the swap:

yarn swap

Features

  • Utilizes the Raydium SDK for interacting with the Solana blockchain.
  • Supports both versioned and legacy transactions.
  • Allows simulation of swap transactions before execution.
  • Easy configuration for swap parameters through a dedicated config file.
  • mainnet.json file not required

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js installed (v18 or above recommended)
  • Yarn
  • A Solana wallet with some SOL for testing the swap
  • An environment file (.env) with your RPC URL and WALLET_PRIVATE_KEY

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published