raydium-sdk-swap-example-typescript
An example to swap tokens on Solana using the Raydium SDK, TypeScript, and Chainstack
File Explorer
- auto-assign.yml
- spam-detection.yml
- config.ts
- index.ts
- RaydiumSwap.ts
- swapConfig.ts
- trimmed_mainnet.json
- .env.example
- .gitattributes
- .gitignore
- AGENTS.md
- LICENSE
- MAINTAINERS.md
- package.json
- README.md
- tsconfig.json
- yarn.lock
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
yarn
View Details ▼
yarn
JavaScript and Node.js package manager alternative.
yarn global add {{module_name}}
Install a module globally:
yarn install
Install all dependencies referenced in the `package.json` file (the `install` is optional):
yarn add {{module_name}}@{{version}}
Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
