Raytx is a command-line tool written in Rust for performing token swap operations on Raydium.
Before getting started, ensure that the following software is installed on your system:
cargo build -r
This will generate an executable file raytx, located in the target/release/raytx.
raytx swap <mint> buy --amount-in=<amount-in>
# 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.
Use --jito
to speed up swap.
Read more
To start the daemon, use the following command:
raytx daemon
More information in the documentation
Contributions to this project are welcome. If you have any questions or suggestions, feel free to raise an issue.
This project is licensed under the MIT License.