Welcome to the world of atomic swaps! In this user-friendly guide, we’ll explore how to utilize ETH-XMR atomic swaps to securely exchange Ethereum (ETH) and Monero (XMR). Whether you’re on the mainnet or using test environments, we’ve got you covered!
Understanding Core Components
The ETH-XMR atomic swap implementation consists of two primary binaries: swapd and swapcli.
- swapd: The swap daemon that discovers nodes via the p2p network, queries nodes for available offers, and manages the swap protocol.
- swapcli: A command-line interface tool that interacts with swapd, allowing users to perform RPC calls.
How to Get Started
Follow the instructions below to try atomic swaps based on your desired environment.
Trying it on Mainnet
If you’re ready to dive into the Ethereum and Monero mainnet, check out the instructions here.
Trying it on Monero’s Stagenet and Ethereum’s Sepolia Testnet
To test the swap on StagenetSepolia, follow the guidelines detailed here.
Trying it Locally
For local testing between two nodes (the maker and the taker) in a development environment, utilize the instructions available here.
Decoding the Swap Process
The swap process can be viewed similarly to an intricate dance between two partners (ETH and XMR). Each partner moves gracefully, signaling to the other when it’s time to step in. This process is formalized in a dance protocol, which you can study in detail here.
Additional Documentation
For those interested in development, refer to the developer instructions. The HTTP JSON-RPC API, alongside a Websockets API for engaging with the swap process, can be explored here.
Contributing to the Project
If you’re excited to contribute, feel free to fork the repo and submit a pull request. Confirm that the CI passes by running the commands:
make build
make lint
make test
Remember, contributions are licensed under LGPLv3.
Troubleshooting Tips
If you encounter issues or have questions:
- Ensure you have the necessary dependencies installed for your environment.
- Double-check your network settings to guarantee that node discovery is functional.
- Refer to the documentation links provided above if you hit snags with specific RPC calls.
- For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Final Thoughts
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.
Happy swapping!