- Run
!pip install solana !pip install solders !pip install requests
- Copy the Code in the file
- Paste in google collab cell
- Change the inputs
amount = 1.0 # Amount to swap (in SOL) input_token_address = "So11111111111111111111111111111111111111112" # Replace with your from token addess currently this is solana address output_token_address = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" # Replace with your to token address currently this is USDC address private_key_string = "REPLACE WITH YOUR PRIVATE KEY" # Your own private key in base58String
- Run the cell to send the swap
- Check the transaction in solscan
-
Notifications
You must be signed in to change notification settings - Fork 0
crypto523/Jupiter_Swap
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published