A Python Telegram Bot and Rust AXUM API that automates the transaction process from bitcoin to Solana SPL Tokens using Lightning Payments on Kraken API, Mongodb, Jupiter Swap API, and Solana Blockchain.
- Install Rust: Follow the instructions at rust-lang.org to install Rust on your machine.
- API Keys and Configuration:
-
Create a
.envfile in the root of your project directory. -
Add your Kraken API keys, MongoDB URI, and Solana private key for the wallet that is registered in Kraken for withdrawals to the
.envfile:KRAKEN_API_KEY=your_kraken_api_key KRAKEN_API_SECRET=your_kraken_api_secret MONGO_URL=your_mongodb_uri PRIVATE_KEY=your_solana_private_key
-
-
Build the Project:
-
Run the following command to build the project:
cargo build
-
-
Run the Project:
-
Use the following command to run the project:
cargo run
-
- Install Docker: Follow the instructions at docker.com to install Docker on your machine.
- Install Docker Compose: Docker Desktop includes Docker Compose, so no additional installation is needed if you have Docker Desktop.
Unfinished:
Use chmod +x scripts/clean_build.sh scripts/debug.sh to ensure both scripts are executable:
chmod +x scripts/clean_build.sh scripts/debug.shRun Clean Build
scripts/clean_build.sh- Create droplet / VM with root password
- Run
Cargo cleanto slim down copy process // scp -r ./ [email protected]:./ - In project directory
scp -r ./ root@your_droplet_ip:./to copy project to the root of the VM - Use with:
chmod +x ./scripts/install-docker.shthen./scripts/install-docker.shand check withdocker-compose --version docker-compose up --buildin VM/Droplet root directory or where ever project was copied to
chmod +x ./scripts/install-docker.shto make it executablecargo buildbuilds andcargo runruns the rust axum api locally- Kraken has a minimum 0.0001 BTC trade minimum
- Private key for wallet verified as Kraken Withdrawl address is needed for anything in
lockin.rsto work