Skip to content
/ raytx Public

Solana raydium pool and pump.fun swap written in rust

Notifications You must be signed in to change notification settings

wisarmy/raytx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytx

Raytx is a command-line tool written in Rust for performing token swap operations on Raydium.

Project Dependencies

Before getting started, ensure that the following software is installed on your system:

  • Node.js If using TS for swap
  • Rust version 1.8 or higher.

Build

cargo build -r

This will generate an executable file raytx, located in the target/release/raytx.

Using the Command-Line Tool

Buy

raytx swap <mint> buy --amount-in=<amount-in>

Sell

# sell 50%
raytx swap <mint> sell --amount-in-pct=0.5

# sell all, close wallet ata when sell all
raytx swap <mint> sell --amount-in-pct=1

# Sell 1000
raytx swap <mint> sell --amount-in=1000

Replace with the address of the token you want to swap, and with the quantity| with the percentage you want to swap.

Jito

Use --jito to speed up swap. Read more

Using swap api

To start the daemon, use the following command:

raytx daemon

More information in the documentation

Contributing

Contributions to this project are welcome. If you have any questions or suggestions, feel free to raise an issue.

License

This project is licensed under the MIT License.