You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<atarget="_blank"href="https://docs.chainstack.com/quickstart/">Blockchain API reference</a> •
20
+
<atarget="_blank"href="https://console.chainstack.com/user/account/create">Start for free</a>
21
+
</p>
22
+
1
23
# Raydium SDK Swap Example
2
24
3
-
This project demonstrates how to perform a token swap on the Solana blockchain using Raydium's protocol. The example specifically illustrates swapping SOL (native Solana token) for USDC (a stablecoin).
25
+
This project demonstrates how to perform a token swap on the Solana blockchain using Raydium and Chainstack. The example specifically illustrates swapping SOL (native Solana token) for USDC (a stablecoin).
26
+
27
+
> Find the full guide on the Chainstack Developer Portal.
4
28
5
29
## Features
6
30
@@ -13,10 +37,19 @@ This project demonstrates how to perform a token swap on the Solana blockchain u
13
37
14
38
Before you begin, ensure you have met the following requirements:
15
39
16
-
- Node.js installed (v14 or above recommended)
40
+
- Node.js installed (v18 or above recommended)
41
+
- Yarn
17
42
- A Solana wallet with some SOL for testing the swap
18
43
- An environment file (.env) with your RPC URL and WALLET_PRIVATE_KEY
19
44
45
+
## Chainstack Solana node
46
+
47
+
Deploy a Solana node on Chainstack; the following steps will guide you:
48
+
49
+
1.[Sign up with Chainstack](https://console.chainstack.com/user/account/create).
50
+
2.[Deploy a node](https://docs.chainstack.com/docs/manage-your-networks#join-a-public-network).
51
+
3.[View node access and credentials](https://docs.chainstack.com/docs/manage-your-node#view-node-access-and-credentials).
52
+
20
53
## Environment variables
21
54
22
55
Add your RPC endoint and private key to a `.env` file:
0 commit comments